I ran across this article at http://www.langa.com (2002-12-12 Edition) that I thought might be of interest to others. This will create a right click menu option to print the contents of directories.
MORE INFORMATION 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.
Dwight ***************************************************** 12-12-02, 09:51 AM redder Thanks Dwight, I was looking for something like this only last week!
P.S Have a great Christmas and new year. ***************************************************** 12-14-02, 07:19 AM donaldekliros Dwight:
I did what you said in the Directions given & I got the following:
"Access to the specified device, path, or file is denied"
When I right clicked on the folder I selected. ***************************************************** 12-14-02, 08:45 AM Dwight When I did this, I first named the file "print.bat" and got the same error message.
When I renamed the file "prin.bat" (print, without the t) the problem was resolved.
Dwight
[This message was edited by Dwight on 12-14-02 at 08:56 AM.] ***************************************************** 12-14-02, 01:06 PM sonnet26 This appears to work only for Win98, Win98se and WinME. I found these instructions for WinXP Home and Pro editions here. BE VERY CAREFUL IF YOU DECIDE TO EDIT THE REGISTRY; THIS IS NOT FOR BEGINNERS! If you don't know what you're doing, DON'T DO IT.
Create the Printdir.bat File To create the Printdir.bat file: Click Start, click Run, type notepad, and then click OK. 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
On the File menu, click Exit, and then click Yes to save the changes. In the Save As dialog box, type %windir%\Printdir.bat, and then click Save.
Create a New Action for File Folders Click Start, click Control Panel (or, point to Settings, and then click Control Panel), and then click Folder Options. On the File Types tab, click File Folder. Click Advanced, and then click New. In the Action box, type Print Directory Listing. In the Application used to perform action box, type printdir.bat, and then click OK. Click OK, 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 cannot guarantee that you can solve problems that result from using 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: Start Registry Editor (Regedt32.exe). Locate the Default value under the following key in the registry:
HKEY_CLASSES_ROOT\Directory\shell
Click Modify on the Edit menu. Type none in the File data box, and then click OK. Quit Registry Editor.
The first instructions didn't work for me so I'm off to try the ones for WinXP. Thanks for bringing this information to us Dwight, O Master.
sonnet26 Dwight, The Master ***************************************************** 12-14-02, 02:19 PM ivnj That is very interesting but since I'm not a Registry expert and have XP I'll leave that alone!
But incase anybody was wondering how the Right click was dissabled in the first palce or how to add that that to thier page I found it here!
ivnj ***************************************************** 12-14-02, 06:47 PM donaldekliros To Dwight:
I have the right spelling, Prin.bat, however in your last communication you said that the Prin.bat was a file. The Prin.bat that I have came out a Folder.
Do you have any idea why this happened. ***************************************************** 12-14-02, 08:40 PM Dwight 1. Open Notepad, and then copy and paste the following text into Notepad:
Copy the text (from the original post) and save the file as
prin.bat
Be sure the "Save as type" box is set to "All Files". Save the file as: prin.bat Save it to C:\Windows
That should solve the problem.
Dwight
[This message was edited by Dwight on 08-10-03 at 04:22 AM.] ***************************************************** 12-14-02, 08:45 PM Dwight
"This appears to work only for Win98, Win98se and WinME." Sonnet26
I had noticed that, and so put in the link to the Microsoft page, and the Langa.com article. But, I should have also mentioned it my post. Thank you for bringing that to everyone's attention. ***************************************************** 12-14-02, 10:51 PM sonnet26 When I made my little change (adding Print Directory to my right click menu), it changed the default folder settings to Search. Now when I double click on any folder in My Documents or My Computer, the only way I can open them is to right click and choose Open from the menu. How do I get my default settings back to "Open" when I double click on any folder. It's really annoying and I don't know what to choose to return it to the default settings.
The following (slightly edited) is copied from the link above:
"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 cannot guarantee that you can solve problems that result from using 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: Start Registry Editor (Regedt32.exe).
Click Start Click Run Type:
regedit
Click "OK" (added by me)
Locate the Default value under the following key in the registry:
HKEY_CLASSES_ROOT\Directory\shell
Click Modify on the Edit menu. Type none in the File data box, and then click OK. Quit Registry Editor."
Hope this does the trick!
Dwight ***************************************************** 12-15-02, 09:46 AM sonnet26 Not only are you The Master, you are patient and polite beyond words. Thank you for not pointing out that I'd read, and posted, the very instructions you just gave me. LOL
Dwight sonnet26 ***************************************************** 12-15-02, 02:41 PM Dwight I make way too many errors to ever poke fun at another...Happy Holidays!
Dwight
This message has been edited. Last edited by: DorianGreyed,
Posts: 4346 | Location: Anchorage, AK | Registered: 06-05-02