Print a directory listing
Occasionally we come across the need to print out the whole list of files and folders within a directory, windows by standard does not do this, however a simple bat file can do this
To add the print directory feature to Windows Explorer, follow these steps:
1. Open Notepad, and then copy and 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
2. Save the file as Prin.bat in the Windows directory, and then close Notepad.
3. Start Windows 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 Prin.bat, and then click OK.
8. Click OK, click Apply, and then click OK.
9. Open Windows Explorer, right-click the folder that you would like to print a directory listing of, and then click Print Directory Listing.
The whole article from Microsoft can be found here http://support.microsoft.com/?kbid=272623
Doing this however we do get occasions when after completing this when we double click a folder it opens the search box.
This can be fixed by:
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, follow these steps:
EDIT THE REGISTRY AT YOUR OWN RISK
1. Start Registry Editor.
2. Locate the Default value under the following registry subkey:
HKEY_CLASSES_ROOT\Directory\shell
3. On the Edit menu, click Modify.
4. In the Value data box, type none.
5. Click OK.
6. Exit Registry Editor.
Again the full Microsoft article can be found here: http://support.microsoft.com/kb/321379
Hope you find this Useful.
Comments
Leave a comment Trackback