- Home
- Windows Vista
- Customize
- How to add the Print Directory feature for file system folders in Windows Vista
How to add the Print Directory feature for file system folders in Windows Vista
Summary
This article describes how to add the Print Directory option in the context menu of file system folders in Windows Vista. Adding this option helps you quickly send the directory listing to the printer or a file.
Adding the "Print Directory" feature
- Click Start, type Notepad. When Notepad appears in the Start menu search results, right-click and choose Run as Administrator
- Copy the following text to Notepad:
@echo off
dir %1 /-p /o:gn > "%temp%\Listing"
start /w notepad /p "%temp%\Listing"
del "%temp%\Listing"
exit
- Click File, Save (CTRL+S), mention the file name/path as %windir%\printdir.bat and press ENTER. The file printdir.bat is now saved to the Windows folder.
- Download printdir_vista.reg from the Attachments section of this article.
- Save printdir_vista.reg to Desktop, right-click the file and choose Merge. If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
Tip: If you want to only view the file contents, and don't want to send it to the printer, alter the 3rd line in the Printdir.bat above, so that the following command:
becomes:
start /w notepad /p "%temp%\Listing"
becomes:
start /w notepad "%temp%\Listing"
The Print Directory option is now added to the context menu of file system folders in your Windows Vista computer.
Attachments
Related Articles
- How to hide the "Delete" command from Recycle Bin context menu in Windows Vista
- How to open an elevated Command Prompt from the folder context menu in Windows Vista
- Using "Copy as Path" command to copy file or folder path to the clipboard in Vista
- How to add "Open Command Window Here" context menu option on file system folders in Windows Vista
- How to Add Items to the "Send To" Menu in Windows Vista
If you enjoyed this post, make sure you
subscribe to our RSS feed!
We feature Tips, Troubleshooting information, Scripts and Utilities for Microsoft Windows Operating Systems!
Prefer an E-mail subscription?
4 Responses to "How to add the Print Directory feature for file system folders in Windows Vista" 
|
said this on 03 Jun 2007 5:27:54 PM PST
In 1991, I had a Mac. In 1997, I switched to the IBM clone side. I missed Print Directory. Microsoft has always needed to add this and never did do it. Thanks for the How To.
|
|
said this on 07 Aug 2008 12:39:38 AM PST
Ramesh,
I tried your suggestion to modify the printdir.bat file to only list the contents of the directory, but the notepad file with the results was deleted almost as soon as it appeared. I then reviewed the batch file and noted that you didn't mention deleting the 4th line in the file to prevent the file from being deleted as soon as it was displayed. I made the revision and it worked as it should.
I then revised the 2nd printdir.bat file to save it as "listdir.bat", revised the printdir_vista.reg file to merge it as a "List Directory" in the context menu. It worked, so now I have both "List Directory" and "Print Directory" in my context menu.
You're probably already aware of these possible changes, and if so I appologize for taking up your time. If not... then here's an update to your article.
Thanx for listening to my rambling.
Randy Mumford
|
|
said this on 21 Aug 2008 8:29:29 PM PST
You really should be using ".cmd" instead of ".bat" in your tips.
|
|
said this on 05 May 2009 6:39:26 AM PST
I have done the print Dir routine but now get an error say to set an association in the association control panel. I found the control panel but dono which association to set.
|

Author)