First, you need to create a batch file called Printdir.bat. Open Notepad or another text editor and type (or cut and paste) this text:
dir %1 /-p /o:gn > "%temp%\Listing"
start /w notepad /p "%temp%\Listing"
Now, in the Save As dialog box, type "%windir%\Printdir.bat" (without the quotation marks) and click the Save button.
Click 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 Directory Listing" (without the quotation marks).
In the Application used to perform action box, type "Printdir.bat" (without the quotation marks).
Click OK in all three dialog boxes to close the dialog boxes.
You're not quite finished yet! Now you need to edit the Registry, so open your favorite Registry Editor.
Navigate to HKEY CLASSES ROOT\Directory\shell.
Right click on "default" and select Modify.
In the File Data box, type "none" (without the quotation marks).
Click OK and close the Registry Editor.
Now when you right click a folder, you'll see the option to Print Directory Listing. Selecting it will print the contents of the folder.
... which worked okay, and still does. But then, after a while, I noticed a problem: when I opened a directory -- my documents, for instance -- and I began to drill down through the sub folders, everything opened in a new window. I had about 25 darned windows open!
Then I did something stupid and tried to correct it myself. Here's what I did:
- Opened windows explorer
- Got into Folder options, then File types
- Selected the first "File Folder" Icon I came across
- Clicked on "Advanced"
- Clicked on "New"
- For "Action" I typed "Open"
- For "Application" I selected Explorer.exe
Also in the "Folder Options/General" tab, under "Browse Folders," I have "Open each folder in the same window" selected.
What do I gotta do to get this back to the way xp opens folders normally?