![]()
[<<]Message[>>] [<<]Author[>>] [<<]Subject [<<]Thread
Number : 135 Date : 2001-06-03 Author : Kan Yabumoto Subject : Re: Prompt before file copy Size(KB) : 2
At 2001-06-03 08:50, Melissa wrote: > from David: > > >How can I get a prompt before creating (not overwriting) each > > >destination file? Using /P does not seem to work. I'm sure I've > > >missed something basic. > from Kan: > > Now, as David pointed out, /P is not specific to file creation. > > Currently, XXCOPY has the following switches > > > > /P // prompts at any file action (for create and overwrite) > > /Y0 // prompts when a file is to be overwritten > > > > Indeed, the prompt prior a file-creation is missing... > > > > ================================================================== > > So, what we need is a new set of prompts like... > > > > /PC // prompts before file-creation > > /Po // prompts before file-overwriting (equivalent to /Y0) > >So, the only difference between the existing switch and the proposed >switch is that the latter would not appear when an overwrite comes >up. I must have misinterpreted David's message, because it sounded >as if no prompt came up for new files, even with the /P switch. >(Since most of my xxcopy activity is in batch files, I try to >suppress all prompts, all the time.) > >Melissa ======================================================================= Well, /P can be possibly suppressed by /YY, and therefore, I did not comment on it one way or the other. What I was saying was that /P does not distinguish whether the file action is for file-creation or file-overwriting (for file write activities, of course). Even the /P action can be suppressed in other context (e.g., /L will make /P a moot point and therefore /P is suppressed by /L). Although we could "couple" actions for overwrite and file-creation, usually, when a switch like this is created, it's usually most convenient if the two operate independently one another. So, /PC (and it's counter-switch, /PC0) or /Po (and /Po0 --- which are the same as /Y0 and /Y) should not modify the behavior of the other one. Summing this up, /PC controls the aspect of file-creation only (has no effect when a file is overwritten. /Po controls the aspect of file-overwriting (has no effect on when a file is created (that's how the /Y switch currently works and there is no reason to let /Po behave any differently). Wow, we are now discussing a vapor switch in great detail. (we wish we always engage in a detailed discussion of a how a new switch should behave before it has been implemented ---- in some rare cases, we end up regretting our earlier decisions). Hope this should make it clear. Kan Yabumoto ========================================================================
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.