show file description? with dir?

Dec 3, 2008
I've forgotten how to list files including the description. Years ago I would save zipped archives of my software release and save a password in a description. I can still see the passwords - either direction in the file @descript.ion or by an expression including %@Descript[...], but I think it used to be easier, yet I don't see a DIR option to do the trick.

Can someone remind me please?
Dec 7, 2009
Left Coast, USA
"Dir /z" does mangle the filenames. I use the following in a .btm file. It isn't elegant, but it works. The commands "Yellow" "White" and "Cyan" are simple aliases that change the text color (for example, "bri yel on blu"), and "Normal" returns to the default text color.
do _x in /a:-d *
    if "%@descript[%_x]" == "" ITERATE
    echos  %_x
    echos   '%@descript[%_x]'
    echo   (%@filesize[%_x,bc])

There's a separate DO loop afterward that restricts the display to directories only. That way files with descriptions and subdirectories with descriptions are displayed separately.
Dec 3, 2008
Very nice. Thank you mikea & anrdaemon. Dir /z is what I'd forgotten; the help for /Z is a bit obscure. Luckily my old filenames are mangle-insensitive.

Still I like mikea's "inelegant" file. I've had occasion to write a fair amount of btm files but never noticed echos or include.
Dec 7, 2009
Left Coast, USA
> Still I like mikea's "inelegant" file

I should have said that the output is somewhat inelegant-looking. The DO loop itself is a thing of exquisite beauty.

Speaking of ITERATE, see the documentation for the LEAVE command — also very useful in a DO loop.
Similar threads
Thread starter Title Forum Replies Date
M ANSI is used to show files instead of OEM in version 17 to 19 ! Support 5
T How to? Show the values of batch variables on the TCC screen Support 21
gschizas Take Command (Environment) doesn't show v2 ANSI colors Support 30
w_krieger TCC takes time to show registered to. Support 31
R How to? Not have RT version show on start Support 3
D How to? How to show variables expanded in the log tab Support 3
Alpengreis WAD Command "MSGBOX /?" does not show option /N Support 2
R attribute selection /A:= does not show T Support 3
vefatica LIST and TYPE show UTF8 BOM Support 4
vefatica (OT) Show desktop from command line? Support 20
R TC 13 / TCDIALOG for 'dir' / show command Support 2
vefatica IDE window takes 30 seconds to show Support 0
S Can Take Command show TortoiseSvn folder icons? Support 9
S Emailed post did not show up Support 0
J History file load hangs if file has complete garbage in it... Support 1
jdanielp Cannot step into and/or call another .bat file when debugging .bat file Support 2
thorntonpg file explorer - short cut keys Support 1
JohnQSmith New online help file wrong logo Support 7
Jay Sage WAD Possible Bug With OPTION Command With @FILE Support 5
samintz How to? swap endianness in a binary file Support 12
vefatica `Back quotes` - command line vs. batch file Support 5
fpefpe How to? batch file size Support 2
Jay Sage Issues With TCMD File Explorer Support 0
FreezerBurnt Help making a CMD and TCC compatible batch file Support 7
Joe Caverly @FILESIZE and NTFS File Stream Support 1
Joe Caverly Embedding an .EXE (or other file) into a .BTM Support 8
U Command help on file names Support 5
S Concatenate all playlists into 1 file Support 22
Joe Caverly Set a batch variable (%1 - %n) when TCC is executing a batch file Support 5
Joe Caverly Rename file that begins with Emoji Support 7
Joe Caverly PSHELL and NTFS File Streams Support 2
P Kill all other instances of tcc from a btm batch file Support 2
D ffind hangs on large file Support 18
Alpengreis Documentation Minor issue in help file for view /E Support 1
fpefpe batch file ending early Support 18
J Licesne file location Support 1
K robocopy cancelling batch file processing Support 28
Jay Sage TCMD Crashes with "tctoolbar /c /r file" Support 5
A Unable to pass batch file arguments unaltered Support 18
MikeBaas How to...extract a string from a .json-file? Support 10
vefatica LIBRARY and file name completion? Support 4
D What does the file "..\Everything\Run history.csv" store? Support 5
H Takecommand.pdf failed not a pdf file Support 6
Joe Caverly DIRectory Colorization in v25 Help File Support 0
D When copying/moving, appending " (2)" to filename when the target file already exist. Support 7
R How to? Dir specific file search patterns with spaces in the pathnames? Support 6
Joe Caverly _EXPANSION in help file Support 0
Stefan Hassel Installation file TC 24.02 Build 47 is actually version 25.00.1 Support 10
vefatica Are @FILEDATE[file] and @FILEDATE[file,u] ever different? Support 2
K_Meinhard Help file error Support 1

Similar threads