View Single Post
  #11  
Old April 15th 04, 12:41 AM
Bruce Sanderson
external usenet poster
 
Posts: n/a
Default How can I print in WinXP from a DOS-based program?

See if item 2.a at http://members.shaw.ca/bsanders/printfromdos.htm works.

If not, I suspect you have either the computer name or the printer share
name not correct.

To find the computer name:

1. click Start
2. right click on My Computer and select Properties
3. the computer name is the text that follows "Full computer name:" but
without the trailing "." that may show. The text shown for "Workgroup:" is
NOT part of the computer name.

To find the printer's Share Name:

4. click Start, Printers and Faxes
5. right click on the printer and select "Sharing..."
6. the text in "Share name:" is the printer's Share Name. Note that if this
name has a space in it, you can not use it in a net use command. Make sure
that the Share Name does not have any embedded spaces.

--
Bruce Sanderson MVP Printing

It is perfectly useless to know the right answer to the wrong question.



"M. B." wrote in message
...
Cari,

Thanks for the suggestion but:

Well, I now know that my computer name is:
violin1.workgroup

and the printer nameis:
brother

so, I tried the following:

net use lpt1: \\violin1.workgroup\brother

but I get an "System Error 66". I also tried using lpt2 with, and
without
the semicolon afterwards, but still getting this error.

Any advice?

"Cari (MS-MVP)" wrote in message
...
See Bruce Sanderson's article at
http://members.shaw.ca/bsanders/printfromdos.htm

Cari
www.coribright.com

"M. B." wrote in message
...
I am currently running Windows XP SP1. There is an old DOS-based

program
that I still use for certain accounting activities. The problem is

that
my
printer on this machine (local) is now connected to an ETHERNET router.
The DOS-based program is still trying to print to LPT1.

Is there any way I can get a print-out with my setup? I need to

somehow
redirect the LPT1 output so it goes to my IP 192.168.0.11 (thats where

the
printer resides).

Any help would be appreciated!








Ads