Radimus
(KiX Supporter)
2005-12-12 04:26 PM
Copy or XCopy

Could COPY be modified to include XCOPY finctionality, specifically the /d parameter to copy files/folder after a given date or just newer

I use something like this in a file list array as a workaround...

Code:

Function FreshFile($source,$destination,$file)
dim $compare
if exist($destination+'\'+$file)
$compare=comparefiletimes($source+'\'+$file,$destination+'\'+$file)
if $compare=1 or $compare=-3
setfileattr($destination+'\'+$file,128)
copy $source+'\'+$file $destination

endif
endif
EndFunction