[<<]Message[>>]        Author            Subject[>>]        Thread[>>]

Number : 2818 Date : 2002-09-18 Author : napsnaps2000 Subject : Deleting selected files Size(KB) : 0
I have written a batch file to back up modified files to a directory on a rotating basis. I thought I could clear out the directory for re-use (on the next rotation) using the commands XXCOPY /CE D:\BACKUP\%NUMBER%\*.* H:\*.* /RS /BS /S XXCOPY /CE D:\BACKUP\%NUMBER%\*.* /RMDIR /Y /X*.ZIP (the first to clear out files present in the backup directory which are duplicated on the original (H:) drive and the second to delete all files except zip files) However the whole directory given by the environmental variable %NUMBER% is up for deletion (actually I think I have to leave off the *.*). I could do that with deltree.. Am I missing something? So far I am very impressed with xxcopy. D.H.
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.