1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

copy /u /s

Discussion in 'Suggestions' started by wbiebel, Oct 21, 2008.

  1. wbiebel

    Joined:
    Jun 28, 2008
    Messages:
    22
    Likes Received:
    0
    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.
     
  2. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,520
    Likes Received:
    4
    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
     

Share This Page