samintz
Scott Mintz
- May
- 1,590
- 27
I have a directory structure that looks like this:
when I run with a wildcard all the folders are filename only:
However, if I specify a path I get really odd results:
And if I use a more significant path:
And this is just plain wrong:
Code:
C:\TC27
├──event
│ ├──.cov
│ ├──ipch
│ │ └──event-76870a50
│ ├──Release
│ ├──synctest
│ └──x64
│ └──Release
├──library
├──sdk
│ ├──Win32
│ └──x64
└──styles
when I run with a wildcard all the folders are filename only:
Code:
do /a:d /s * (echo %d)
event
library
sdk
styles
.cov
ipch
Release
synctest
x64
event-76870a50
Release
Win32
x64
Code:
$ do d in /a:d /s .\* (echo %d)
.\event
.\library
.\sdk
.\styles
.\.cov
.\ipch
.\Release
.\synctest
.\x64
.\event-76870a50
.\Release
.\Win32
.\x64
Code:
$ do d in /a:d /s ..\TC27\* (echo %d)
..\TC27\event
..\TC27\library
..\TC27\sdk
..\TC27\styles
Code:
$ do d in /a:d /s C:\TC27\* (echo %d)
C:\TC27\event
C:\TC27\library
C:\TC27\sdk
C:\TC27\styles
C:\TC27\event
C:\TC27\library
C:\TC27\sdk
C:\TC27\styles
C:\TC27\event
C:\TC27\library
C:\TC27\sdk
C:\TC27\styles
C:\TC27\event
C:\TC27\library
C:\TC27\sdk
C:\TC27\styles
C:\TC27\event
C:\TC27\library
C:\TC27\sdk
C:\TC27\styles
C:\TC27\event
C:\TC27\library
C:\TC27\sdk
C:\TC27\styles
C:\TC27\event
C:\TC27\library
C:\TC27\sdk
C:\TC27\styles
C:\TC27\event
C:\TC27\library
C:\TC27\sdk
C:\TC27\styles
C:\TC27\event
C:\TC27\library
C:\TC27\sdk
C:\TC27\styles
C:\TC27\event
C:\TC27\library
C:\TC27\sdk
C:\TC27\styles
C:\TC27\event
C:\TC27\library
C:\TC27\sdk
C:\TC27\styles
C:\TC27\event
C:\TC27\library
C:\TC27\sdk
C:\TC27\styles
C:\TC27\event
C:\TC27\library
C:\TC27\sdk
C:\TC27\styles
C:\TC27\event
C:\TC27\library
C:\TC27\sdk
C:\TC27\styles