A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » Printing and Faxing with Windows XP
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Printing to LPT1 using net use



 
 
Thread Tools Display Modes
  #1  
Old July 4th 04, 04:00 PM
The One
external usenet poster
 
Posts: n/a
Default Printing to LPT1 using net use

Hi All,

A friend of mine has an old DOS application which can only print to LPT1,
LPT2 or LPT3. He purchased a new PC which only has USB ports. He obtained
a lead which allows windows applications to print to his printer and
after some suggestions from this newsgroup we managed to get the DOS
application printing after sharing the printer as HP1 and using the
following:

net use lpt1: \\127.0.0.1\HP1

This appears to work but there are two problems.

1) You need to re-issue the net use command from a dos box every time
the PC is re-booted. If you type net use it says the LPT1 is unavailable.
I have tried putting a batch file in the start folder for all users but
it does not work. Running the batch program from a dos box works.

2) There is a considerable delay when printing

I do not know if these two issues are related.

Can anyone add any advice on overcomming these issues ?

TIA John
Ads
  #2  
Old July 4th 04, 04:10 PM
Cari \(MS MVP\)
external usenet poster
 
Posts: n/a
Default Printing to LPT1 using net use

See Bruce Sanderson's article at:
http://members.shaw.ca/bsanders/printfromdos.htm
--
Cari (MS-MVP Windows Client - Printing, Imaging & Hardware)
www.coribright.com

"The One" wrote in message
.. .
Hi All,

A friend of mine has an old DOS application which can only print to LPT1,
LPT2 or LPT3. He purchased a new PC which only has USB ports. He obtained
a lead which allows windows applications to print to his printer and
after some suggestions from this newsgroup we managed to get the DOS
application printing after sharing the printer as HP1 and using the
following:

net use lpt1: \\127.0.0.1\HP1

This appears to work but there are two problems.

1) You need to re-issue the net use command from a dos box every time
the PC is re-booted. If you type net use it says the LPT1 is unavailable.
I have tried putting a batch file in the start folder for all users but
it does not work. Running the batch program from a dos box works.

2) There is a considerable delay when printing

I do not know if these two issues are related.

Can anyone add any advice on overcomming these issues ?

TIA John



  #3  
Old July 4th 04, 05:44 PM
V Green
external usenet poster
 
Posts: n/a
Default Printing to LPT1 using net use

See response inline:
"The One" wrote in message
.. .
Hi All,

A friend of mine has an old DOS application which can only print to LPT1,
LPT2 or LPT3. He purchased a new PC which only has USB ports. He obtained
a lead which allows windows applications to print to his printer and
after some suggestions from this newsgroup we managed to get the DOS
application printing after sharing the printer as HP1 and using the
following:

net use lpt1: \\127.0.0.1\HP1

This appears to work but there are two problems.

1) You need to re-issue the net use command from a dos box every time
the PC is re-booted. If you type net use it says the LPT1 is unavailable.
I have tried putting a batch file in the start folder for all users but
it does not work. Running the batch program from a dos box works.


Amend your net use command to the following:

net use lpt1: \\127.0.0.1\HP1 /persistent:yes

will make the connection permanent-downside is, if the OS can't
reconnect to the printer at logon, you'll get a bitch box to that effect.



2) There is a considerable delay when printing


this is a network issue, it is EXTREMELY hard to get delay-free
browsing, etc. these days, what with mixed OS/hardware environment
out there. My suggestion: live with it. The many workarounds
(HOSTS file, etc.) often lead to other problems.


I do not know if these two issues are related.

Can anyone add any advice on overcomming these issues ?

TIA John



  #4  
Old July 5th 04, 01:43 PM
Davide Guolo
external usenet poster
 
Posts: n/a
Default Printing to LPT1 using net use

John,

1) You need to re-issue the net use command from a dos box every time
the PC is re-booted.


Add /persistent:yes

2) There is a considerable delay when printing


There could be many reasons for this.
Probably the DOS app. is not closing the printer port at the end of the job,
so XP has to wait for the timeout value before spooling the job.
If this is true, closing the DOS app. will start the job immediately.

You could change the timeout value or (better) fix the DOS app. (if you
can).

If you also have a parallel printer connected to the captured LPT port,
maybe you could consider having Printfil redirecting the job for you.

Redards,
Davide
--------------------------------------------------------------
Printfil - Windows Printing System for Applications
http://www.guolo.com/printfil
Odbc4All - Connection to ODBC Data Sources for any Application
http://www.guolo.com/odbc4all
--------------------------------------------------------------


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 07:30 AM.


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