![]()
[<<]Message[>>] [<<]Author[>>] [<<]Subject[>>] [<<]Thread[>>]
Number : 2558 Date : 2002-07-28 Author : Garry Deane Subject : Re: overwrite (but out-of-space) Size(KB) : 1
Kan, Haven't you got the file specifications reversed in the first line or did you mean /zy ? It seems to me that the first line will delete from the source (C:\...) if the file exists on A:. Garry --- In xxcopy@y..., Kan Yabumoto wrote: > > 2. Write a two-step batch file where the first one > will remove any redundant file. > > E.g., > > mybatch.bat > ----------------------------------------------------------- > xxcopy c:\windows\desktop\manuscript.doc a:\ /u/rsy/pd0/pz0 > xxcopy c:\windows\desktop\manuscript.doc a:\ /y > ----------------------------------------------------------- > > Here, the first line with /U will select any file(s) > that match the source specifier's file pattern (it > could be more than one, depending on the pattern (with > wildcards), and /RSY will remove the file. The /PD0/PZ0 > will suppress warning prompts. Note: the /RS (with > the Y suffix in this case to suppress the prompt) > is to remove file(s) from the source. > > The 2nd line is the actual job (/Y is superfluous but > does not hurt --- in case the first one fails). > Furthermore, you may add /H/R (to cover cases where > the file has the hidden/system and/or read-only attributes. > > Kan Yabumoto > ================================================================
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.