![]()
[<<]Message[>>] [<<]Author[>>] [<<]Subject [<<]Thread
Number : 8707 Date : 2004-09-11 Author : Garry Deane Subject : Re: Empty folder being deleted even when excluded Size(KB) : 1
--- In xxcopy@yahoogroups.com, "Craig" wrote: > OK, figureed this out now. My mistake. In my batch file, > I also list all the files that would be deleted prior to > deleting them and assumed because I was just listing them > that some switches were not needed, for example /ED > > XXCOPY d:\ftp\ /x\ftp\inbox\ /x\ftp\outbox\ /x\ftp\extra\ > /rs/s/pd0/db#60/ldz >> d:\deleted.txt > > Notice I hadn't used the /ed switch. It was the above line > that was causing me the problems. > > Sorry to trouble you. Should have checked further first. > Craig Congratulations! You have found (in my view) a new bug. When you use /L, xxcopy should not take any action to copy/delete files/directories but should only list the files that are selected. Interestingly, if you don't exclude the directory, xxcopy won't delete it e.g. create empty directories as follows: \test\dir1\ \test\dir2\ xxcopy \test\ /rs/s/pd0/L This will not delete either dir1\ or dir2\. However with the following: xxcopy \test\ /rs/s/pd0/L/x\test\dir1\ dir1\ will be be listed as an exclusion and will then be deleted. Further, despite using /rs which should prompt before deletion, there is no prompt. However this is understandable since there should be no deletion with /L so no need to issue a deletion prompt. As you've found, it's easy to to work around this. Probably the simplest is to remove the /RS command rather than adding /ED. Garry
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.