PCbanter

PCbanter (http://www.pcbanter.net/index.php)
-   Printing and Faxing with Windows XP (http://www.pcbanter.net/forumdisplay.php?f=39)
-   -   Printing from DOS (http://www.pcbanter.net/showthread.php?t=1067206)

Stuart Grant[_2_] March 19th 10 01:10 PM

Printing from DOS
 
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


John John - MVP March 19th 10 03:09 PM

Printing from DOS
 
Delete the printer mapping and persistent connection at the Command Prompt:

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

John



Stuart Grant wrote:
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


John John - MVP March 19th 10 03:09 PM

Printing from DOS
 
Delete the printer mapping and persistent connection at the Command Prompt:

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

John



Stuart Grant wrote:
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


Stuart Grant[_2_] March 20th 10 10:49 AM

Printing from DOS
 
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





John John - MVP wrote:
Delete the printer mapping and persistent connection at the Command Prompt:

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

John





Stuart Grant[_2_] March 20th 10 10:49 AM

Printing from DOS
 
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





John John - MVP wrote:
Delete the printer mapping and persistent connection at the Command Prompt:

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

John






All times are GMT +1. The time now is 01:13 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2004 - 2006 PCbanter
Comments are property of their posters