How To Add An Option To Print All The Contents Of A Folder In XP

Posted by in Articles, Windows Tips, Windows Hacks

Once in many times, you may need to print whole files of the specific folder. Well if you need often to print number of files or you run a press media company then I am going to teach you how to print all the items in specific folder.

We’ll be adding new right click option to print the folder. Whenever you right click on any folder, this print option will be shown and whole folder files can be printed.

To do so you’ll need to create a batch file called Printdir.bat. Open Notepad and paste the following code:

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

Save it as, “%windir%\printme.bat” (without the quotes).

Now go to Start > Control Panel> Folder Options. Click the File Types tab, and then click File Folder.

Click the Advanced button.

Click the New button.

In the Action box, type “Print this folder” (without the quotes). In Application used to perform action box, type “printme.bat” (without the quotes).

If you did right then you’ll see image similar to below:

Click on OK in all three dialogue boxes.

Now you need to edit the Registry to add the Print this folder shortcut in right click. Open Registry Editor by typing “regedit”  (without quotes) in RUN box (Start> Run).

Navigate to HKEY_CLASSES_ROOT>Directory>shell.

In the right side of the window, right click on “default” and select Modify.

In Value Data, type “none” (without the quotes).IMG_F

Click OK and close the Registry Editor.

Now when you right click on any folder, you’ll see the option, Print this folder.

Selecting it will print the contents of the folder.

Hope this was helpful.