Chimaera Posted August 8, 2012 Share Posted August 8, 2012 (edited) Ok If i was using CMD i would have the files to exclude like this (shortened example) SET _exc_vista_files="Maid with the Flaxen Hair.mp3" "Sleep Away.mp3" "Chrysanthemum.jpg" "Desert.jpg" "Hydrangeas.jpg"And Robocopy reads it like this Maid with the Flaxen Hair.mp3 Sleep Away.mp3 Chrysanthemum.jpg Desert.jpg Hydrangeas.jpg In AutoiT ihave done this (Shortened Example) $sExcVistaFiles = "Chrysanthemum.jpg|Desert.jpg|Despertar.wma|Din Din Wo (Little Child).wma|Distance.wma|Maid with the Flaxen Hair.mp3" $aExcVistaFiles = StringSplit($sExcVistaFiles, "|", 2) Each way i try it it seperates the elements like Din Din Wo (Little Child).wma and they become Din Din Wo (Little Child).wma I cant seem to find a way to feed it to robocopy in the correct format Ive tried with it as a string and array and using arraytostring converting back Im probably missing something simple so a little help please Edited August 8, 2012 by Chimaera If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
UEZ Posted August 8, 2012 Share Posted August 8, 2012 (edited) Maybe you should use quotation marks for the /XF parameter. $sExcVistaFiles = 'Chrysanthemum.jpg|Desert.jpg|Despertar.wma|Din Din Wo (Little Child).wma|Distance.wma|Maid with the Flaxen Hair.mp3' $sExcVistaFiles = '"' & StringReplace($sExcVistaFiles, "|", '"|"') & '"' $aExcVistaFiles = StringSplit($sExcVistaFiles, "|", 2) Br, UEZ Edited August 8, 2012 by UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
Chimaera Posted August 8, 2012 Author Share Posted August 8, 2012 (edited) Thanks for that I ended up having to do this after it to get it to work $test = _ArrayToString($aExcVistaFiles, " ") and then passing $test to /XF then it appears in robocopy as "item" "next item" etc Also within the excludes are things like this OAM's Blues.wmaWhich breaks the quotes how do i allow for that? Edited August 8, 2012 by Chimaera If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now