Print Directory Listing in Windows
Posted By Chris Stinson in Windows on June 26, 2007
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”
del “%temp%\Listing”
exit
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.
Related posts:
- Outlook Print Margins Cut Off
- Windows TCP/IP Service Worm and Uninstalling TCP/IP on a Domain Controller
- Windows: Scheduling Tasks via Command Line
- Vista File Operations Slow: Green bar in Windows Explorer
- How to turn off the Image Thumbnail File (thumbs.db) in Windows XP


