I used to back up new files on my harddisk drives to my network drive using the dos command:
copy c:\ed\*.* n:\edbackup\ /s /m /i /d:10/10/2002
that is: copy everything in c:\ed\ directory to n:\edbackup\ ; inlcude subdiretories;, if a new or modified file [archive attribute will have been set]then copy this file over, but switch off the archive attribute in the original ; assume if destination does not exist that destination is a directory; copy everything created or modified since date of last big backup.
This no longer works on my windows 2000 system, and i'm trying to produce a more flexible system in Delphi. I have an efficient file copy procedure thanks to expertsXexchange based on the ShellAPI:
But don't know how to just copy those files with thearchive attribute set (and to turn it off of the files I've copied). Is there an easy (and efficient) way to do this,or do I have to do it the long way (open each relevant file, copy line by line, close, etc)??
help much appreciated,