saverfixer Posted June 10, 2009 Posted June 10, 2009 Hi i am new here but not new to autoit and still learning (dont we all) I was looking into help file about FileCopy command and found that there are not to many options, only 0 1 and 8 Project i am working on has tons of files needed to be copied so i cannot copy them all each time it will take a while. Instead if i could copy only those that are newer than once in the destination folder ? Also when files are copied, is there anyway i could make something up that will store all copied files into INI ? so that i can restore only those that were copied . Thanks
herewasplato Posted June 10, 2009 Posted June 10, 2009 Open a cmd windowtype xcopy /? and press enterread what it says about the /D switch [size="1"][font="Arial"].[u].[/u][/font][/size]
saverfixer Posted June 10, 2009 Author Posted June 10, 2009 no no no no i dont want to use CMD i am over it once i switched to autoit. There has to be another way
Inverted Posted June 10, 2009 Posted June 10, 2009 (edited) xcopy rules ! Powerful and I'm guessing it's gonna be very fast. Why not let it do the work for you ? It's gonna be invisible anyway. (You do know you can call it from autoit, right ? No need to make a batch file or anything) Anyway, if you want to do it yourself, I'd start by checking out the _FileListToArray function. Once you have 1 array for the source folder and 1 array for the destination, then it's a matter of cross-referencing to check the dates etc. Edited June 10, 2009 by Inverted
saverfixer Posted June 10, 2009 Author Posted June 10, 2009 Yeah i could use Xcopy but kinda wanted to avoid dealing with CMD.Thanks _FileListToArray is sweet, i just looked at example script it comes with and i was like WOW thats exactly what i need Thanks friend
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