Sign in to follow this  
Followers 0
saverfixer

files overwrite or not ? which once to copy ?

5 posts in this topic

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

Share this post


Link to post
Share on other sites



Open a cmd window

type xcopy /? and press enter

read what it says about the /D switch


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by Inverted

Share this post


Link to post
Share on other sites

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 :D

Thanks friend

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0