Paths shown in DIR /B

Jan 25, 2011
I would expect Dir /B to show just filenames and nothing else. But in some cases and not others the full path is quoted in square brackets after the filename, Why is this?
I am running Take Command v24.02.50 x64 on Windows 10 and giving the command dir /B on a folder in Dropbox (folder is in the cloud)

Charles Dye

Super Moderator
Staff member
May 20, 2008
Albuquerque, NM
Most likely, you're seeing junctions. The directory in brackets is the target of the junction. The option /NL should disable this feature. (I'm kind of surprised that /B doesn't disable it automatically.)
Similar threads
Thread starter Title Forum Replies Date
J How to? Disable unix-style paths interpretation of / Support 2
M Incorrect ARGV1 when using linux-style paths Support 4
mfarah How to? Getting pdir to display relative paths. Support 2
R Fixed Using %~dp1 for paths with unavailable drives Support 6
T Paths in ZIP Support 1
S blanks in environment variable paths Support 4
S Listing the paths of all directories of a given name Support 4
L File completion window saws long paths Support 3
Juanma Barranquero App Paths of type REG_EXPAND_SZ Support 2
Ó Recent git output not shown on TCC Support 1 How about updating the version shown when you upload a new one? Support 4
E Fixed Bug with DIR /Z displaying descriptions Support 8
K Fixed Prompt display will be shifted after use dir to display a filename with Chinese. (v25.00.28 x64) Support 18
Jesse Heines How to? How to display picture creation date with dir command Support 6
vefatica WAD DIR.BTM? Support 11
DrusTheAxe DIR reports meaningless SYMLINK information Support 14
C show file description? with dir? Support 8
vefatica DIR /F and streams? Support 7
rps Multi-column DIR /v not displaying all files. Support 5
R How to? Dir specific file search patterns with spaces in the pathnames? Support 6
rps Dir /Nfv -> Alt-F2 Support 2
rps @FILESIZE[....,a] allocated size not matching Dir results Support 8
A TCMD - Dir Command puts out blank lines? Support 16
S Problems with dir command in the debugger Support 5
M TCC incorrect dir output since Windows 1803 Support 6
x13 Problem listing repository files using DIR http(s)://... Support 8
cxxl dir /s works in mysterious ways :( Support 4
vefatica Help nit (FFIND and DIR with /S) Support 0
N Fixed Strange dir behavior Support 6
JohnQSmith Weird DIR output (missing lines) Support 1
C 7zip with date range .vs. filelist created with dir and daterange Support 0
D Towards shared (dir-)history lists Support 3
vefatica WAD DIR /HL still gets names wrong Support 16
vefatica DIR /S /HL? Support 4
H Fixed DIR /G returns wrong sizes Support 2
nickles WAD dir.htm Support 2
vefatica DO dir in /s /a:+d /d"g:\" * ( ... ) Support 26
vefatica DIR \\.\...? Support 4
M Fixed DIR /S /B1 ignores "/S" Support 5
C tcmd.ini not loading from program dir? Support 5
D Fixed Dir /Nm:n has changed Support 1
rps How to? dir /s unexpected results Support 10
vefatica Update to current install dir? Support 8
cgunhouse Problem with "dir /=" Support 4
T dir /h error in empty directory Support 22
P WAD TC x64 crasches with a simple dir command Support 18
CWBillow dir /4 strange Support 2
samintz WAD DIR /B1 and /X Support 2
nickles dir behaves inconsistently Support 5
vefatica DIR, streams, and wildcards? Support 1

Similar threads