Printing from DOS

  • Thread starter Thread starter Stuart Grant
  • Start date Start date
S

Stuart Grant

Yes I still have a fairly large Program I wrote myself many years ago in
QuickBasic, which I use every week.

Some three years ago I found Bruce Sanderson's web page with
instructions on how to do it. The printer is connected to the computer
with a USB cable. His solution works perfectly.

I wrote a small batch program
net use \\computername\printername /permanent:yes

Problenm is now that the printer needs a new drum, which costs more than
a new small laser printer, installed it. gave it a network name and
tried to run the batch file with The new printer name.

I got the error message "the device is already allocated to another
Printer". I shut down. Ran the original batch file again with
"remember:no", shut down and restarted and tried again: Ihis time "it
said another printer name has already been remembered.

How can I get rid of it ? I can't change the batch file to use "lpt2"
since the program apparently won't print to "lpt2".

I'm using WindowsXP with SP3.

Can anyone help.

I know I could perhaps cahange the names but I still want to keep the
old printer connected until the drum gives up. It is still working fine.

Stuart
 
Delete the printer mapping and persistent connection at the Command Prompt:

net use /persistent:no
net use \\server\printer /d

John
 
John

Thank you for the prompt assistance. I don't think I succeeded in
deleting the printer mapping and the persistent connection however.

The server name is "otto". The old printer is "orwell". The new
computer is "bowwow". I apologise if the names seem puerile !

I entered "net use /persistent:no" and got the response "the command
completed successfully"

I entered "net use \\otto\orwell /d" and got the response "The
connection \\otto\orwell has been deleted"

I thought I was home and dry but when I entered
"net use lpt1: \\otto\bowwow" I got the response
"the local device has a remembered connection to another network resource"

It must be my fault but what am I doing wrong ?

Stuart
 
Back
Top