Discussion Locked

Printing from NT Dos

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Having a problem printing from a Dos based program. The program runs from a shortcut to a .bat file which maps Lpt1 to a network printer. I am able to print to this printer from a command window, but unable to print from this program when executing the .bat file. Any help is appreciated

7 replies

by wburdine

I have this exact problem with my software from my vendor. Since it was "bandaided" from a single station to network "enabled" an environment variable had to be set that the program would look for, it would then match that variable up and print to the appropiate port (physical or logical). You could set up an environment variable such that it is named LPTx with its network path of \\computername\printername and try to see if that works. If it does, create a logon script on the server under \\servername\NETLOGON that your workstations will use with the command NET USE LPTx: \\computername\printername. These are just some of the steps I tried and I have it all working with 9x, Nt4, & 2k clients.

by virendra argekar

well,
what i think is that , the program does not support printing or wrong instrucitions are sent to the printer !

Well, " exexcuting thru batch file " check if the .bat file is right !

by m. lacombe

The easiest thing would be to setup your icon with a batch. Everytime you want to run the program the batch would be used

NET USE LPT1 /delete
NET USE LPT1 \\server\queue
run program here

I always try to use the delete to make sure somethingelse isn't mapped on the LPT1 port when you try running it.

This discussion is closed to new replies.