Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Print directory listing to network printer.


22 Apr 2014   #1

Windows 7 Pro 64-bit
 
 
Print directory listing to network printer.

I've installed MS's printdir.bat file but it's not working properly. When I select Print Directory Listing from the context menu in Windows Explorer, I can see a background flash that indicates the file is executing, but nothing gets to the printer. When I execute PrintDir.bat from the command line, the C:\Windows directory tree prints from the default network printer. I think my problem relates to the presence of the network printer that isn't called out properly in the batch file. (I have 2 network printers). Appreciate any help. Thanks,

Gene


My System SpecsSystem Spec
.

22 Apr 2014   #2
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Hello Gene, and welcome to Seven Forums.

If you like, see if using OPTION ONE in the tutorial below may work better for you. It prints to your default printer by default.

Context Menu - Add View and Print File Directory

Hope this helps,
Shawn
My System SpecsSystem Spec
22 Apr 2014   #3

Windows 7 Pro 64-bit
 
 
: Print directory listing to network printer - Solution

The suggested solution was a 50% winner, but that's good enough. I was provided with 2 batch files: (1) to add "Print Directory Listing" to Explorer's context menu, and (2) to add "View Directory Listing" to the menu. The first worked the same as my original; that is, it seemed to work but didn't print; the 2nd opened up Notebook with a listing of the directory, from which I was able to print. I still don't understand why the Printdir.bat doesn't work as advertised, but I'll leave that for another day. Meanwhile, I very much appreciative of the quick response for a practical solution to my problem.

Gene
My System SpecsSystem Spec
.


22 Apr 2014   #4
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

A couple of things to check so far.

Are you using the context menu to execute the .bat from?

Is the network printer set as the default printer?
My System SpecsSystem Spec
22 Apr 2014   #5

Windows 7 Pro 64-bit
 
 
: Print directory listing to network printer

Quote   Quote: Originally Posted by Brink View Post
A couple of things to check so far.

Are you using the context menu to execute the .bat from?

Is the network printer set as the default printer?
I don't understand the first question. The registry was modified appropriately so that the Print Directory Listing is selected from the context menu by right-clicking on a folder in Windows explorer.

As to the second question: yes, the network printer is the default printer.

I think the problem lies in the fact that the Printdir.bat file doesn't properly identify the default printer. However, as I've already posted, the Viewdir.bat file properly displays the folder listing in Notebook from which it's possible to print.
My System SpecsSystem Spec
22 Apr 2014   #6
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Yep, that's what I was asking if you were using the context menu, and not just running the .bat directly.

The Printdir.bat basically does the same as the Viewdir.bat file, but uses the /p switch to print the directory list to the default printer instead of copying it to a .txt file.

I'm not sure why it doesn't print.
My System SpecsSystem Spec
23 Apr 2014   #7

Windows 7 Pro 64-bit
 
 
: Print directory listing to network printer

That makes two of us.
My System SpecsSystem Spec
Reply

 Print directory listing to network printer.




Thread Tools



Similar help and support threads for2: Print directory listing to network printer.
Thread Forum
Network printer won't print Hardware & Devices
Cannot print with printer on network Network & Sharing
rt-clk PRINT DIRECTORY LISTING doesn't give me options I want General Discussion
Solved Cannot Print to Network Printer Network & Sharing
Network printer won't print Network & Sharing

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 07:29 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33