|
Answer» Hello everyone. It seems that i have stumbled across a goldmine of information. With my new job comes new tasks and it looks like i'm here to stay. My FIRST little task i have is a way of archiving files and renaming them. After looking through the forums it appears it is quite easily done. My problem is this. I will be backing up several directories onto a removable harddrive. Each file i archive will be renamed adding the DATE and Time to it for tracking. This will run every hour. Now, is it possible to flag up a file as already archived as i would not want to KEEP writing over files which have already been copied. I would like to only archive 'new files'.
Any help would be appreciated. I have done a bit of script writing but not to a high level. I'm more of a networks kinda guy. Thanksxcopy/? at a command prompt. available switches will do that. create a .bat file and run it on a schedule. or to have it always active in the background, use the wait command and loop it back to the start.2k_dummy's solution should work (xcopy /M). You may also want to look into ROBOCOPY which is a Microsoft TOOL, that should be able to automate most of what you want to do. It is available as a free download from Microsoft available in the Windows Recource Kit. ROBOCOPY is a NATIVE command with Windows Vista now also.
|