Print a Folders Contents for XP


If you need to print the contents of a folder, then this batch file will come in very handy. Once you have followed the instructions below, you will be able to right click a folder and click Print Directory Listing from the resulting menu.

Create the Printdir.bat File:

To create the Printdir.bat file:

1. Go to Start>> Run, type: notepad
2. Click OK
3. Paste the following text into Notepad:

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

4. On the File menu, click Exit, and then click Yes to save the changes.
5. In the Save As dialog box, type: %windir%\Printdir.bat
6. Click Save

Create a New Action for File Folders:

1. Click Start, click Control Panel (or, point to Settings, and then click Control Panel), and then click Folder Options.
2. On the File Types tab, click File Folder.
3. Click Advanced, and then click New.
4. In the Action box, type:

Print Directory Listing

5. In the Application used to perform action box, type:

printdir.bat

6. Click OK.
7. Click OK, and then click Close.

Edit the Registry:

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft and 5 Star Support cannot guarantee that you can solve problems that result from using the Registry Editor incorrectly. Use Registry Editor at your own risk.

After you follow the steps in the previous sections, Search Companion may start when you double-click a folder (instead of the folder being opened). Or, if you have associated other actions with file folders, those actions may be performed instead.

To resolve this issue:

1. Start Registry Editor (Regedt32.exe).
2. Locate the Default value under the following key in the registry:

HKEY_CLASSES_ROOT\Directory\shell

3. Click Modify on the Edit menu.
4. In the Value data box, type:
5. Click OK.
6. Quit Registry Editor.

Previous "BOOTMGR is missing" – Startup Error On Windows
Next Change Windows Vista Default Programs

No Comment

Leave a reply

Your email address will not be published. Required fields are marked *