Print Directory OptionTo Explorer

December 10, 2007 Poster: Jim Views: Category: Cool tricks, Hacks, Registry tweak, Tweak

Batch file that will print from the context menu (right click) in explorer.

1.Open notepad and copy and paste this:

@echo off
dir %1 /-p /o:gn > “%temp%\Listing”
start /w notepad /p “%temp%\Listing”
del “%temp%\Listing”
exit

2.Save the file as Pdirectory.bat in the Windows directory.
3. Start Explorer, click Tools, and then click Folder Options.
4. Click the File Types tab, and then click File Folder.
5. Click Edit, and then click New.
6. In the Action box, type Print Directory Listing.
7. In Application used to perform action, click Pdirectory.bat, and then click OK.
8. Click OK, click Apply, and then click OK.
Done… Now you will be able to right click on a directory and print out a listing!.

UPDATE: I had a problem with printing sometimes, if you get it just do a quick Reg fix:

Hive: HKEY_CLASSES_ROOT
Key: Directory\Shell
Name: Default
Data Type: REG_SZ
Value: none

Once you set the value of Default to none, at the location above, all is fine.

Share This:

This Seems Useful!! Help Us To sahre This Post with Rest Of The World
  • Digg
  • StumbleUpon
  • Technorati
  • del.icio.us

Subscribe:

Sign up to receive latest Tips & Tutorials
as well as receive other site updates!

Related Post

Print Directory OptionTo Explorer
Stop win explorer from expanding

Windows XP Explorer tree expanded by default. You can stop windows explorer from expanding by using this method:Right click on Windows XP Explorer...

Print Directory OptionTo Explorer
Rename Multiple Files In A Easy Way..

XP lets you rename files in bulk by simply selecting multiple files within Windows Explorer and pressing the F2 key. When you use this feature,...

Print Directory OptionTo Explorer
Structure of The Registry

There are six main branches, each containing a specific portion of the information stored in the Registry. They are as follows: *...

Print Directory OptionTo Explorer
Unload Dll Files and Free Memory.

Windows Explorer caches DLLs in memory for a period of time after the application an using them has been closed. Which in some cases can be an...

Leave a Reply

*

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.