- Jul
- 81
- 0
Windows XP SP3 all up to date, TCC 11.00.51
The SYNC help says about the /N option:
"Do everything except actually perform the copy. This option is useful for testing the result of a complex SYNC command. /N displays how many files would be copied. /N does not prevent creation of destination subdirectories when it is used with /S."
Neither, apparently, does it prevent the deletion of destination subdirectories when used with /S and /W.
I tested this command with the /N option
SYNC /N/S/E/W .\ "C:\DOCUMENTS AND SETTINGS\UBRAP0\FAVORIS\"
Its report was as expected:
69 files would be copied
SYNC: "C:\Documents and Settings\ubrap0\Favoris\" => D:\y
0 files would be copied
So I ran the command without the /N option...
SYNC /S/E/W .\ "C:\DOCUMENTS AND SETTINGS\UBRAP0\FAVORIS\"
...but got an error:
Usage : SYNC [/A:[[-][+]rhsdaecjot] /CDEGH /I"text" /JKLM /N[dejnst] /O:[-]adegnrstu /OPQR /Sn /TVWX] dir1 dir2
Except for the /N option, the second command syntax was identical to the first, so why the error message? Because "C:\Documents and Settings\ubrap0\Favoris" no longer existed, the first "test" command had removed it. Surprise!
I think the behaviour should be corrected or be noted in the help.
--
Peter
The SYNC help says about the /N option:
"Do everything except actually perform the copy. This option is useful for testing the result of a complex SYNC command. /N displays how many files would be copied. /N does not prevent creation of destination subdirectories when it is used with /S."
Neither, apparently, does it prevent the deletion of destination subdirectories when used with /S and /W.
I tested this command with the /N option
SYNC /N/S/E/W .\ "C:\DOCUMENTS AND SETTINGS\UBRAP0\FAVORIS\"
Its report was as expected:
69 files would be copied
SYNC: "C:\Documents and Settings\ubrap0\Favoris\" => D:\y
0 files would be copied
So I ran the command without the /N option...
SYNC /S/E/W .\ "C:\DOCUMENTS AND SETTINGS\UBRAP0\FAVORIS\"
...but got an error:
Usage : SYNC [/A:[[-][+]rhsdaecjot] /CDEGH /I"text" /JKLM /N[dejnst] /O:[-]adegnrstu /OPQR /Sn /TVWX] dir1 dir2
Except for the /N option, the second command syntax was identical to the first, so why the error message? Because "C:\Documents and Settings\ubrap0\Favoris" no longer existed, the first "test" command had removed it. Surprise!
I think the behaviour should be corrected or be noted in the help.
--
Peter