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

Number : 1716 Date : 2002-03-04 Author : Peter Mokover Subject : Delete Files Size(KB) : 0
I am trying to write an XXCOPY command line that will not copy anything. It will just delete certain files on the source. I want to delete all *.bak files in all subdirectories of the directory c:\agent. I want to delete files only from the subdirectories, not from the c:\agent folder itself. Here's what I came up with: xxcopy "c:\agent\?*\*.bak" /RS It seems to work BUT when it runs I get the following message for each of the subdirectories: RmDir Failed What is causing that message? When I read the documentation about the /RS switch, it does not say anything about removing directories (which is good because I don't want to remove any directories). What am I missing? Peter