Ok, now I seem to remember that Apple had this in their OS -- it'd be cool if there was a way in winXP to let you print the contents of, say, your mp3 folder...
set dir=<directory>
for /f %%a in ('dir "%dir%" /b') do echo %%a >> <path>\<file name>.txtI found this on a "Tips and Tricks" site which is quite simple and uses some of the techniques mentioned before. Still not as nice as Karen's, but useful and fast nonetheless. First make a batch file named "PrintDir" (or something even more ingenious) and stick it in C:\ (or somewhere appropriate):CodeThen make a new reg key:@echo off dir %1 /-p /o:gn > "%temp%\Listing" start /w notepad /p "%temp%\Listing" del "%temp%\Listing" exitCodewith the following value:HKEY_CLASSES_ROOT\Directory\shell\Print Directory\commandCodeNow you can right click on any directory and select the "Print Directory" command and it will print a list of all folder names inside. To print a list of files also add "/s" after the "dir" command in the batch file. In fact, look at the DIR help page for even more options.c:\printdir.bat %1\
Original address: https://www.donationcoder.com/forum/index.php?topic=566.0