![]()
[<<]Message[>>] [<<]Author[>>] Subject[>>] Thread[>>]
Number : 28 Date : 2001-05-16 Author : Jim Witherspoon Subject : The /Z and /RX switches Size(KB) : 1
XXCOPY has some other switches that I wondered about as I read them. For example, the effect of the /Z switch has been described as something like "deletes extra files/directories in the destination". I wondered, just what is considered to be an "extra file" in the destination? Just to give a clear example - what would be the effect of: xxcopy c:\src\*.doc c:\dst\ /ZY Two possibilities: (1) All the files in c:\dst, besides the .doc files copied over from c:\src, are "extra" files and are deleted. (2) Only the *.doc files in c:\dst that are not in c:\src are extra files and are deleted. The answer is (2) - only those files in the destination which fit the source file selection criteria (here *.doc), and which are not in the source directory, will be deleted. (Maybe Kan could describe this better.) The technical bulletin recommend that instead of using /Z or /RX (Remove Extra) switches, it can be better to switch the source and destination directories and use /RS/BB instead, so that the files will be deleted from the source directory instead of the destination directory. In this case, the following could be used in place of the above command line: xxcopy c:\dst\*.doc c:\src\ /RS/BB This command line also has the effect of deleting from c:\dst the *.doc files that are not also in c:\src. jim
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.