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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CAN YOU SPOOL DOS JOBS........

Status
Not open for further replies.

venado

Programmer
Nov 28, 2000
35
CA
I HAVE A FILE x.bat which contain TYPE COMMANDS INSIDE TO PRINT SOME TXT FILE TO THE NETWORK PIRNTER.
i.e.
TYPE A.TXT > LPT2:
TYPE B.TXT > LTP2:
.....

THE PRBLEM IS: THESE COMMAND PRINT DIRECTLY TO THE PRINTER PORT AND THE JOBS DON'T GET SPOOLED. SO I GET AN ERROR SAYING: WAIT UNTIL SOME DOCUMENTS ARE PRINET: ABORT,RETRY OR FAIL .

DOES ANYONE KNOWS HOW TO SPOOL THIS TYPE OF DOS JOB, SO THE PRINTER SPOOLER GET USED INSTEAD OF THE PRINTER BUFFERT ONLY.

THANKS.
 
If it is a novell network, you could try
something like an nprint

Should hopefully work

Zim

 
If you aren't on a network, and are just running on DOS, then you can use the DOS print spooler, which is launched simply with the command "PRINT" at the prompt. Print is a TSR so it normally be run during startup.

Or are you running DOS in a window of Windows?
 
Instead of directing reports to individual files and then building the x.bat, you can build all the reports into a single file and then direct it to printer.

SET PRINTER TO [FileName [ADDITIVE] | PortName]

The word ADDITIVE could help you to print append to a file name already used.

This could solve your problem. I have posted the same in your VFP forum aswell.

ramani
 
If under a DOS box in Widnows 95/98 it could be something to do printer driver settings. When creating the printer, you should answer "Yes" to "Do you want MS-DOS Apps to print to this printer"

You can also check the Spool Settings in the printer properties.

Maricus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top