I hope the below are self-explanatory.
What am I not understanding about the copy command?
Is *2* "erroring out" (without error message) when the first sub-directory has nothing to copy?
Is so why no equivalent of /I in global?
How do I do what I want (copy all xxx*.* files from the tree, not creating empty directories)?
- Yakir
TCC 13.03.38 x64 Windows 7 [Version 6.1.7601]
(I get the same with ver. 12 on a different machine)
** 1 **
C:\yhWork\test-> dir /s/f/h
C:\yhWork\test\test01
C:\yhWork\test\test02
C:\yhWork\test\test01\ppp.qqq
C:\yhWork\test\test01\xxx.txt
C:\yhWork\test\test01\xxx2.txt
C:\yhWork\test\test02\yyy.zzz
C:\yhWork\test-> copy /s/f xxx*.* ..\test2
TCC: (Sys) The system cannot find the file specified.
"C:\yhWork\test\xxx*.*"
C:\yhWork\test\test01\xxx.txt => C:\yhWork\test2\test01\xxx.txt
C:\yhWork\test\test01\xxx2.txt => C:\yhWork\test2\test01\xxx2.txt
2 files copied
** 2 **
C:\yhWork\test-> dir /s/f/h
C:\yhWork\test\test01
C:\yhWork\test\test02
C:\yhWork\test\test01\ppp.qqq
C:\yhWork\test\test02\xxx.txt
C:\yhWork\test\test02\xxx2.txt
C:\yhWork\test\test02\yyy.zzz
C:\yhWork\test-> copy /s/f xxx*.* ..\test2
0 files copied
What am I not understanding about the copy command?
Is *2* "erroring out" (without error message) when the first sub-directory has nothing to copy?
Is so why no equivalent of /I in global?
How do I do what I want (copy all xxx*.* files from the tree, not creating empty directories)?
- Yakir
TCC 13.03.38 x64 Windows 7 [Version 6.1.7601]
(I get the same with ver. 12 on a different machine)
** 1 **
C:\yhWork\test-> dir /s/f/h
C:\yhWork\test\test01
C:\yhWork\test\test02
C:\yhWork\test\test01\ppp.qqq
C:\yhWork\test\test01\xxx.txt
C:\yhWork\test\test01\xxx2.txt
C:\yhWork\test\test02\yyy.zzz
C:\yhWork\test-> copy /s/f xxx*.* ..\test2
TCC: (Sys) The system cannot find the file specified.
"C:\yhWork\test\xxx*.*"
C:\yhWork\test\test01\xxx.txt => C:\yhWork\test2\test01\xxx.txt
C:\yhWork\test\test01\xxx2.txt => C:\yhWork\test2\test01\xxx2.txt
2 files copied
** 2 **
C:\yhWork\test-> dir /s/f/h
C:\yhWork\test\test01
C:\yhWork\test\test02
C:\yhWork\test\test01\ppp.qqq
C:\yhWork\test\test02\xxx.txt
C:\yhWork\test\test02\xxx2.txt
C:\yhWork\test\test02\yyy.zzz
C:\yhWork\test-> copy /s/f xxx*.* ..\test2
0 files copied