Annoyances.org
Home » Windows 98 Discussion Forum » Message 1037318548 Search | Help | Home
  
Comment about Printing Directory Listings
Thursday, November 14, 2002 at 4:02 pm
Windows 98 Annoyances Discussion Forum
Posted by Manasseh Katz (1 messages posted)


3 comments:

1) The instructions include putting in a key of:
c:\windows\command\printdir.bat

I found that was printing the Windows Desktop no matter what directory I was in, 
so I changed it to
c:\windows\command\printdir.bat %1
I suspect that is necessary for all versions of Windows.

2) I was trying to do this on a computer with a USB connected HP OfficeJet.  These 
printers simply don't know how to print from DOS.
I came up with a solution:
(New PRINTDIR.BAT)
@echo off
cd %1
dir/on>c:\$dummy$.$$$
c:\windows\notepad.exe /p c:\$dummy$.$$$

This does the directory into a file and then uses notepad to print the file to the 
default printer, which should work no matter how the printer is connected.

3) I set the Properties of PRINTDIR.BAT to "Close on Exit" so that it would disappear 
automatically.




Responses to this message:
*re: Comment about Printing Directory Listings (Alex Goldberg: Thursday, March 20, 2003 at 7:08 am)

All messages in this thread [show all]
-Comment about Printing Directory Listings (Manasseh Katz: Thu, Nov 14, 2002, 4:02 pm)
*re: Comment about Printing Directory Listings (Alex Goldberg: Thu, Mar 20, 2003, 7:08 am)
Return to the Windows 98 Discussion Forum

All content at Annoyances.org is Copyright © 1995-2008 Creative Elementtm All rights reserved.
Please do not plagiarize; redistributing these pages without permission is strictly prohibited.