![]()
[<<]Message[>>] [<<]Author[>>] [<<]Subject Thread
Number : 8741 Date : 2004-09-13 Author : John Zeman Subject : Re: Moving files Size(KB) : 1
--- In xxcopy@yahoogroups.com, "Mancino, John" wrote: > I am new to xxcopy. Can I use the program to move files (not copy) to an > alternate location based on a date range so I can archive old files to > CD ? > In a nutshell, something like the following batch file would do it. My example uses test source and destination directories, and will move all files last modified in August of this year from the source to the destination. @echo off xxcopy "C:\test folder\source\" "d:\" /DA:2004-08-01 /DB:2004-08- 31 /r/h/s/rcy/pd0 pause exit However, I wouldn't actually suggest something like this if you want to move files to CD. Only because CD burning can be notoriously unpredictable, so if anything goes wrong during the burn process, you could lose your files. Instead I'd suggest using a two step xxcopy process. The first step to copy the appropriate files to the CD. xxcopy "c:\test folder\source\" "d:\" /da:2004-08-01 /db:2004-08- 31 /r/h/s Then after verifying you have a good CD made, the next xxcopy command will delete the same files from the source. xxcopy "c:\test folder\source\" /da:2004-08-01 /db:2004-08- 31 /rmdir/rsy John
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.