I want to copy a file to a new location (say "dest"), when ever it get modified in source (say "src")
I want to keep all the copies with out overwriting (ok with Flag 0)
I am using FileGetDate, to compare last modified attributes
I want make my source file is the file which was last modified
Code: Select all
source=d:\*.ods
dest=d:\backup
FileGetTime, MDS, %source%, M
FileCopy, %source%, %dest%\
FileGetTime, MDD, %dest%\*.ods, M
loop
{
if(MDS!=MDD)
{
source1=%dest%\*.ods
FileCopy, %source1%, %dest%\backup_%A_Index%.ods
}
}
Thanks in Advance,
k@D