This is a useful little tip if you wish to print a list of files in a directory.
To print directly, type the following at the command line:
To print to a text file, type the following at the command line:
To print a list including subdirectories, type the following at the command line:
If you want to print using a shell extension (context menu) type the following into notepad and save it as print.bat and place it in the windows directory (usually c:\windows\).
dir %1 /-p /o:gn > “%temp%\Listing”
start /w notepad /p “%temp%\Listing”
Then add “Print Directory Listing” to your context menu. Open the Folder Options tool in Control Panel, select the File Types tab -> In File Types column select File Folder. Click on Advanced -> New -> Specify a name for the action and the point it to the print.bat file you created.