Using this small windows tweak, you can instantly Click and Print content lists of any folder in Windows 7 or Vista.
How To Print An Automatically Generated Directory List
1. Click the Windows Start Menu Orb and Type notepad into the Start Menu. Next Press Enter on your keyboard or Click the Notepad programs link.
2. Copy and Paste the following code into the blank Notepad:
@echo off
dir %1 /-p /o:gn > “%temp%Listing”
start /w notepad /p “%temp%Listing”
del “%temp%Listing”
exit
3. Click the File menu and Select Save As
4. In the File Name text box Paste the following:
%windir%Printdir.bat
Then Click Save.*
*This typically will save the file to the location C:Windows with the name Printdir.bat
Now it’s time to create the registry key, so the command appears in the right-click context menu.
If you want to skip the rest of these steps, you can Download the pre-made registry fix from the link at the bottom of this article.
5. Click the Windows Start Menu Orb, Type regedit in the search box, and then Press Enter.
6. Navigate through the left pane of the registry to the following key:
HKEY_CLASSES_ROOTDirectoryshell
Once there, Right-Click the shell key (looks like a folder) and then Select New > Key.
7. The new key should appear underneath shell. Rename the new key to Print Directory Listing.
The next two steps might feel a little repetitive, but the Windows registry is a pretty boring place.
8. Right-Click Print Directory Listing and Select New > Key.
9. The new key should show up under Print Directory Listing. Rename the new key to command.
Here we break the cycle and edit the default file that usually never gets touched.
10. Under the command key that you just created, Right-Click the default entry and Select Modify.*
*You can also just Double-Click the (Default) entry to modify it.
11. Type the following into the Value data box:
Printdir.bat %1
Once done, Click OK.
Done! Now here is the result.
Now when you Right-Click nearly any folder there will be a new option in the menu called Print Directory Listing. Take a note that this button is linked right to your default Windows Printer.
When you Click the Print Directory Listing option, it will send an automatically generated text list of the folders contents straight to the default printer.
Download the Print Directory Listing registry fix
7 Comments
Leave a Reply
Leave a Reply

Ron B
Great idea to add to context menu but unable to get “fix” using this URL
http://drop.io/groovedexter/asset/enableprintdirectorylisting-reg
MrGroove
Ouch….. Drop.IO died a few months back after Facebook bought them. Dex, do you have a good URL with the fix?
Jan Zumwalt
Your “Download the Print Directory Listing registry fix” link is broken :(
Tom Margrave
I use this all the time but I have added one line to the batch file. I have added the following:
type “%temp%Listing” | clip
Which this will type the contents of the listing file and put it into the clipboard so I do not have go to the notepad for select all and copy.
Here is my recommend change.
@echo off
dir %1 /-p /o:gn > “%temp%Listing”
type “%temp%Listing” | clip
start /w notepad /p “%temp%Listing”
del “%temp%Listing”
exit
KenF
Great Idea, BUT on my Win 7 Pro, it ALWAYS prints a directory of the %windir% directory!!!
RogerT
Works fine in Windows 7. Is there a version for Windows 10? – I tried it there but it comes up with the error ‘not a valid file name’.
BJEvS
Followed all directions. But every time I select “Print Directory Listing” I get an error:
Z:\My Music\!I’m A Man – variety – Application not found