![]()
[<<]Message[>>] [<<]Author[>>] [<<]Subject[>>] [<<]Thread[>>]
Number : 5058 Date : 2003-07-21 Author : thoughtsandideas Subject : Re: /RX switch problem.... Size(KB) : 2
--- In xxcopy@yahoogroups.com, "garrydeane" wrote: > --- In xxcopy@yahoogroups.com, "thoughtsandideas" wrote: > > When I run this command: > > > > xxcopy z:\data k:\backup\data /CLONE /Q1 /oE3 /FF /PB /NX0 /RX > > > > ...it prompts me to delete directories from the dst, even > > though they DO exist in the src. Without the /RX switch, it > > doesn't prompt me to do that, and it doesn't delete those > > directories (and it shouldn't, because they do exist in the > > src.) The documentation says "/RX: Removes files in dst which > > are absent in src (no copying)." So why is /RX trying to > > delete files in the dst that are *present* in the src? > > > > That set of switches, excluding /RX, almost does what I want. > > The only problem is that it prompts me to delete any dst dirs > > that are absent in the src... I thought /RX would fix that, > > but it doesn't. What switch am I missing? > > I'm not too clear on what you are trying to do. I think your > problem is that you have used /clone which is shorthand for a > long list of other switches (see xxcopy /clone/?) then by using > /RX, you have overridden the meaning of some of those switches. > > For example, /clone uses /PD0 which suppresses prompting before > each directory copy/remove whereas /RX uses /PD which does prompt > first. This latter use of /PD takes precedence. Additionally, > using /RX instead of /RXY causes a prompt prior to deletion of > files in the dest. Also, /clone uses /PZ0 which causes a prompt > on the use of the /Z switch in the clone command which > serves almost the same purpose as /RX but results in yet > another prompt. > > It seems that you used /RX to get rid of the prompts that you > get with the /clone command. To figure out which switches will > suppress the prompts, press "?" when prompted and xxcopy will > display which switch suppresses that prompt. > > In your case, if you remove the /RX from your command line, > you just need to add /PZ0 to suppress the "make sure the dest > is correct" prompt. "make sure dest is correct" isn't my problem, though. From my original post: > That set of switches, excluding /RX, almost does what > I want. The only problem is that it prompts me to > delete any dst dirs that are absent in the src. I > thought /RX would fix that, but it doesn't. What > switch am I missing? I didn't know you could press "?" to see switches that would suppress the prompt; I'll try that. Also, you said: > For example, /clone uses /PD0 which suppresses > prompting before each directory copy/remove If that's true, then it's broken, because I *do* get prompted... anytime it's about to delete a dst dir that's absent in the src. And that's without using /RX. /RX just adds more prompts -- it prompts me to delete dirs that it shouldn't even be deleting, because they *do* exist in the src. -Anthony
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.