Done copy /u /s

Jun 28, 2008
22
0
69
Vienna, Austria, Europe
When using copy /u /s Dir1 Dir2 while Dir1 or a subdir of it contains no files but only subdirs there comes a message "no more files" and an internal error %2 is thrown. Although this behaviour is probalby correct (I do not exactly know the specs) is it unusable: using this in a batch file with an "on error" set the workflow will never come to all of the subdirs to synchronize them.
suggestion: an additional flag to ignore (but nevertheless copying or not according to the /f-flag) empty dirs when using the /s-switch.
 
May 20, 2008
3,515
4
Elkridge, MD, USA
JP Software Forums" <neil@jpsoft.com>; "wbiebel wrote:
| When using copy /u /s Dir1 Dir2 while Dir1 or a subdir of it itself
| no files but only subdirs there comes a message "no more files" and
| an internal error %2 is thrown. Although this behaviour is probalby
| correct (I do not exactly know the specs) is it unusable: using this
| in a batch file with an "on error" set the workflow will never come
| to all of the subdirs to synchronize them. suggestion: an additional
| flag to ignore (but nevertheless copying or not according to the
| /f-flag) empty dirs when using the /s-switch.

Please check the /Ne option - it might be just what you wanted!
--
Steve
 
Similar threads
Thread starter Title Forum Replies Date
samintz Done Support ~ and :path in COPY Suggestions 5
C Declined Add switch to MOVE to not make empty destination folders. (COPY's /F) Suggestions 4
C Move/Copy switch not make empty destination sub-folders Suggestions 6
R Copy and Move with auto date/timestamp Suggestions 4
Alpengreis Done Preserves directory attributes for COPYDIR & COPY Suggestions 3
D Duplicate directory path and copy files and subdirectories. Suggestions 4
C Feature Request: Gain some elements of the XXCOPY feature set in COPY or a new "Mass-Copy" command Suggestions 0
R Declined wish-list: add a command to copy a file to clipboard. Suggestions 17
D Done Suggestion: keystroke to copy previous argument Suggestions 3
R Done IDE copy (OR REMOVE) Set var name to Watch list by hotkey Suggestions 2
Alpengreis Done Add "Slow copy" (/WAIT) parameter to SYNC command Suggestions 1
C Declined copy /w suggestion Suggestions 2
WinLanEm Done COPY modify Suggestions 4
rconn New parameter /WTF - COPY/MOVE - Wait on disk full (rather than halt with error) Suggestions 1
rconn Done Copy with Backup Versions Suggestions 0
S Done COPY and MOVE Suggestions 0
S Declined Enhanced @FILE for COPY, DESCRIBE, MOVE, RENAME, SYNC, TOUCH /R Suggestions 0
Roedy Declined Copy to DVD Suggestions 2
D Done Suggestion for commands to move/copy a folder Suggestions 7

Similar threads