Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to print DOS job to USB printer?

Status
Not open for further replies.

DaveImme

IS-IT--Management
Oct 22, 2002
58
US
We are running dbase IV for DOS and one of the users got a new USB printer.....In the past, I've captured LPTx as needed for them to print through Novell. But, with this USB printer, I do not know how to capture it or even to print dos command to it.....can someone help??
 
Here are my notes , see if they help .


---------------------------------

WinAids .
DOS access and PRINTouts for Win95/98/2K. Free
PRINT program enabling a Printout to be made of any ASCII file.

-------------------------------

Dos print programs .

-------------------------------------------


1. Dozens of shareware to do this.
2. Go to a DOS prompt and type: DIR C:\foldername\*.* >LPT1

3. Print Folder Directories

Found this in PcWorld’s January issue:

"Here’s an easy way to print a list of the files contained in
a folder from inside Windows Explorer."

Launch Notepad, then type:

Dir %1> lpt1: and press Enter
Now type cls on the second line, BUT DO NOT PRESS Enter

There must not be anything, not even a blank line after ‘cls’.
Save the two line file in you C:\Windows\Send To folder as
printdir.BAT

Now when you want to a printout of the files in a folder, right
click on the folder in Windows Explorer, and select
Send TO->printdir.bat

---------------------------------------

Dir C:\foldername\*.* >filename.txt (this will create a text file
to do with as you please)

---------------------------------------

Folder Print:
Print Folder:
---------------------------------------

Or, if you don't want another program, here's 2 batch files,
one for creating a .txt file, the other sends it straight to
the printer.

Open Notepad (only), type in **exactly** (or copy/paste from here)

For the .txt file:

dir %1 > C:\list.txt: cls

& save as: textdir.bat

For the printer:

dir %1 > lpt1: cls

& save as: printdir.bat

I save these two files in my "Send to" folder, that way I can just
right click on the folder to execute.

-------------------------------

 
Excellent notes, but missing one thing. USB support in DOS. Cheers,
Jim
iamcan.gif
 
That's right, Jim.......I can print to txt file, etc and all that, but my problem is sending a DOS program job to a USB printer when all my printing modules have esc characters needed for the font, pitch, paper lenght, etc...I just need to know what command I can use in my module to, i.e., 'set print to USB' whereas all I did in the past was 'set print to LPTx'.

 
First you'll have to find some DOS USB drivers, and have them load via a batch file, before sending a print job.
Google a "DOS USB drivers", and you'll find more support. Cheers,
Jim
iamcan.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top