PC Review


Reply
Thread Tools Rate Thread

How to access a USB Printer from a Legacy DOS program or file prin

 
 
=?Utf-8?B?TWlrZTE5NDI=?=
Guest
Posts: n/a
 
      20th Dec 2006
I have been using the DOS Generic CADD6 for a decade or more. It ran very
badly under Windows 98 and runs very well under XP. Most of the time I do
not print from it but put the screen out to a BMP file, then edit that file
in a Windows graphics program to create accurate vector drawings for my web
site pages. Until last year I had an Epson printer with a parallel
connection. Then I bought a USB printer.
Today I wanted to print and the program just hung. When I went to
choices, of course all I was offered was LPT1 & 2, and COM1 ,2 ,& 3 and print
to file.
So is there a way to tell windows XP that DOS LPT1 prints go to the USB
printer?
Also, when I printed to file, the default was PRF, which XP has captured
as a Profile file. I downloaded a program PrintFile to print the file, and
it behaves as it is, but nothing is printed. The drawing on the screen is
white on black, while printing came out black on white paper. Any chance the
print to file thinks it should be putting out white lines?
 
Reply With Quote
 
 
 
 
Thomas Wendell
Guest
Posts: n/a
 
      20th Dec 2006
Mike1942 wrote:
> I have been using the DOS Generic CADD6 for a decade or more. It
> ran very badly under Windows 98 and runs very well under XP. Most
> of the time I do not print from it but put the screen out to a BMP
> file, then edit that file in a Windows graphics program to create
> accurate vector drawings for my web site pages. Until last year I
> had an Epson printer with a parallel connection. Then I bought a USB
> printer. Today I wanted to print and the program just hung. When I
> went to
> choices, of course all I was offered was LPT1 & 2, and COM1 ,2 ,& 3
> and print to file.
> So is there a way to tell windows XP that DOS LPT1 prints go to the
> USB printer?
> Also, when I printed to file, the default was PRF, which XP has
> captured
> as a Profile file. I downloaded a program PrintFile to print the
> file, and it behaves as it is, but nothing is printed. The drawing
> on the screen is white on black, while printing came out black on
> white paper. Any chance the print to file thinks it should be
> putting out white lines?



The first part is easy. Share the printer, the from DOS-prompt "net use
lpt1: \\compname\sharename /persistent"

--
Tumppi
=================================
A lot learned from these newsgroups
Helsinki, FINLAND
(translations from/to FI not always accurate
=================================





 
Reply With Quote
 
Bob I
Guest
Posts: n/a
 
      21st Dec 2006
whatever name you put in the box for the printer when you set it to be
shared.

Mike1942 wrote:

> I know what compname is, can someone clue me on sharename's meaning?
>
> "Thomas Wendell" wrote:
>
>
>>Mike1942 wrote:
>>
>>> I have been using the DOS Generic CADD6 for a decade or more. It
>>>ran very badly under Windows 98 and runs very well under XP. Most
>>>of the time I do not print from it but put the screen out to a BMP
>>>file, then edit that file in a Windows graphics program to create
>>>accurate vector drawings for my web site pages. Until last year I
>>>had an Epson printer with a parallel connection. Then I bought a USB
>>> printer. Today I wanted to print and the program just hung. When I
>>>went to
>>>choices, of course all I was offered was LPT1 & 2, and COM1 ,2 ,& 3
>>>and print to file.
>>> So is there a way to tell windows XP that DOS LPT1 prints go to the
>>>USB printer?
>>> Also, when I printed to file, the default was PRF, which XP has
>>>captured
>>>as a Profile file. I downloaded a program PrintFile to print the
>>>file, and it behaves as it is, but nothing is printed. The drawing
>>>on the screen is white on black, while printing came out black on
>>>white paper. Any chance the print to file thinks it should be
>>>putting out white lines?

>>
>>
>>The first part is easy. Share the printer, the from DOS-prompt "net use
>>lpt1: \\compname\sharename /persistent"
>>
>>--
>>Tumppi
>>=================================
>>A lot learned from these newsgroups
>>Helsinki, FINLAND
>>(translations from/to FI not always accurate
>>=================================
>>
>>
>>
>>
>>
>>


 
Reply With Quote
 
Thomas Wendell
Guest
Posts: n/a
 
      29th Dec 2006
You don't have to be networked to share a local printer, in this case it's a
way to satisfy your need..


Mike1942 wrote:
> Ah, well, the printer isn't shared. It is accessed with a splitter
> from Belkin to connect to our two computers. On the other hand we
> have a network so I suppose I could mark it shared and give it a name.
> In a general context, I find it frustrating that there is no way to
> expose the connections to USB devices.
>
> "Bob I" wrote:
>
>> whatever name you put in the box for the printer when you set it to
>> be shared.
>>
>> Mike1942 wrote:
>>
>>> I know what compname is, can someone clue me on sharename's meaning?
>>>
>>> "Thomas Wendell" wrote:
>>>
>>>
>>>> Mike1942 wrote:
>>>>
>>>>> I have been using the DOS Generic CADD6 for a decade or more. It
>>>>> ran very badly under Windows 98 and runs very well under XP.
>>>>> Most of the time I do not print from it but put the screen out to
>>>>> a BMP file, then edit that file in a Windows graphics program to
>>>>> create accurate vector drawings for my web site pages. Until
>>>>> last year I had an Epson printer with a parallel connection.
>>>>> Then I bought a USB printer. Today I wanted to print and the
>>>>> program just hung. When I went to
>>>>> choices, of course all I was offered was LPT1 & 2, and COM1 ,2 ,&
>>>>> 3 and print to file.
>>>>> So is there a way to tell windows XP that DOS LPT1 prints go to
>>>>> the USB printer?
>>>>> Also, when I printed to file, the default was PRF, which XP has
>>>>> captured
>>>>> as a Profile file. I downloaded a program PrintFile to print the
>>>>> file, and it behaves as it is, but nothing is printed. The
>>>>> drawing on the screen is white on black, while printing came out
>>>>> black on white paper. Any chance the print to file thinks it
>>>>> should be putting out white lines?
>>>>
>>>>
>>>> The first part is easy. Share the printer, the from DOS-prompt
>>>> "net use lpt1: \\compname\sharename /persistent"
>>>>
>>>> --
>>>> Tumppi
>>>> =================================
>>>> A lot learned from these newsgroups
>>>> Helsinki, FINLAND
>>>> (translations from/to FI not always accurate
>>>> =================================


--
Tumppi
=================================
A lot learned from these newsgroups
Helsinki, FINLAND
(translations from/to FI not always accurate
=================================





 
Reply With Quote
 
=?Utf-8?B?TWlrZTE5NDI=?=
Guest
Posts: n/a
 
      29th Dec 2006
Well, I gave the printer a short name as stated in Help and added the line
given to a batch file run during STARTUP
This is the result (copied from command page)
C:\DOCUME~1\Mike\MYDOCU~1\MYWEBS~1\BLINDA~1>net use lpt1:
\\D5LDYM11\EPSONC42 /persistent

You used an option with an invalid value.

The syntax of this command is:


NET USE
[devicename | *] [\\computername\sharename[\volume] [password | *]]
[/USER:[domainname\]username]
[/USER:[dotted domain name\]username]
[/USER:[username@dotted domain name]
[/SMARTCARD]
[/SAVECRED]
[[/DELETE] | [/PERSISTENT:{YES | NO}]]

NET USE {devicename | *} [password | *] /HOME

NET USE [/PERSISTENT:{YES | NO}]


More help is available by typing NET HELPMSG 3505.

Suggestions for fixing this would be welcome.

"Thomas Wendell" wrote:

> You don't have to be networked to share a local printer, in this case it's a
> way to satisfy your need..
>
>
> Mike1942 wrote:
> > Ah, well, the printer isn't shared. It is accessed with a splitter
> > from Belkin to connect to our two computers. On the other hand we
> > have a network so I suppose I could mark it shared and give it a name.
> > In a general context, I find it frustrating that there is no way to
> > expose the connections to USB devices.
> >
> > "Bob I" wrote:
> >
> >> whatever name you put in the box for the printer when you set it to
> >> be shared.
> >>
> >> Mike1942 wrote:
> >>
> >>> I know what compname is, can someone clue me on sharename's meaning?
> >>>
> >>> "Thomas Wendell" wrote:
> >>>
> >>>
> >>>> Mike1942 wrote:
> >>>>
> >>>>> I have been using the DOS Generic CADD6 for a decade or more. It
> >>>>> ran very badly under Windows 98 and runs very well under XP.
> >>>>> Most of the time I do not print from it but put the screen out to
> >>>>> a BMP file, then edit that file in a Windows graphics program to
> >>>>> create accurate vector drawings for my web site pages. Until
> >>>>> last year I had an Epson printer with a parallel connection.
> >>>>> Then I bought a USB printer. Today I wanted to print and the
> >>>>> program just hung. When I went to
> >>>>> choices, of course all I was offered was LPT1 & 2, and COM1 ,2 ,&
> >>>>> 3 and print to file.
> >>>>> So is there a way to tell windows XP that DOS LPT1 prints go to
> >>>>> the USB printer?
> >>>>> Also, when I printed to file, the default was PRF, which XP has
> >>>>> captured
> >>>>> as a Profile file. I downloaded a program PrintFile to print the
> >>>>> file, and it behaves as it is, but nothing is printed. The
> >>>>> drawing on the screen is white on black, while printing came out
> >>>>> black on white paper. Any chance the print to file thinks it
> >>>>> should be putting out white lines?
> >>>>
> >>>>
> >>>> The first part is easy. Share the printer, the from DOS-prompt
> >>>> "net use lpt1: \\compname\sharename /persistent"
> >>>>
> >>>> --
> >>>> Tumppi
> >>>> =================================
> >>>> A lot learned from these newsgroups
> >>>> Helsinki, FINLAND
> >>>> (translations from/to FI not always accurate
> >>>> =================================

>
> --
> Tumppi
> =================================
> A lot learned from these newsgroups
> Helsinki, FINLAND
> (translations from/to FI not always accurate
> =================================
>
>
>
>
>
>

 
Reply With Quote
 
Bruce Chambers
Guest
Posts: n/a
 
      29th Dec 2006
Mike1942 wrote:
> Well, I gave the printer a short name as stated in Help and added the line
> given to a batch file run during STARTUP
> This is the result (copied from command page)
> C:\DOCUME~1\Mike\MYDOCU~1\MYWEBS~1\BLINDA~1>net use lpt1:
> \\D5LDYM11\EPSONC42 /persistent
>
> You used an option with an invalid value.
>
> The syntax of this command is:
>
>
> NET USE
> [devicename | *] [\\computername\sharename[\volume] [password | *]]
> [/USER:[domainname\]username]
> [/USER:[dotted domain name\]username]
> [/USER:[username@dotted domain name]
> [/SMARTCARD]
> [/SAVECRED]
> [[/DELETE] | [/PERSISTENT:{YES | NO}]]
>
> NET USE {devicename | *} [password | *] /HOME
>
> NET USE [/PERSISTENT:{YES | NO}]
>
>
> More help is available by typing NET HELPMSG 3505.
>
> Suggestions for fixing this would be welcome.
>



As the error message shows, the command should have been:

NET USE LPT1 \\D5LDYM11\EPSONC42 /PERSISTENT:YES

You placed a what may have been superflous colon ( after the device
name (LPT1), and then didn't complete the persistence switch (option
with invalid value).


--

Bruce Chambers

Help us help you:
http://dts-l.org/goodpost.htm
http://www.catb.org/~esr/faqs/smart-questions.html

They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. -Benjamin Franklin

Many people would rather die than think; in fact, most do. -Bertrand Russell
 
Reply With Quote
 
Michael W. Ryder
Guest
Posts: n/a
 
      29th Dec 2006
Bruce Chambers wrote:
> Mike1942 wrote:
>> Well, I gave the printer a short name as stated in Help and added the
>> line given to a batch file run during STARTUP
>> This is the result (copied from command page)
>> C:\DOCUME~1\Mike\MYDOCU~1\MYWEBS~1\BLINDA~1>net use lpt1:
>> \\D5LDYM11\EPSONC42 /persistent
>>
>> You used an option with an invalid value.
>>
>> The syntax of this command is:
>>
>>
>> NET USE
>> [devicename | *] [\\computername\sharename[\volume] [password | *]]
>> [/USER:[domainname\]username]
>> [/USER:[dotted domain name\]username]
>> [/USER:[username@dotted domain name]
>> [/SMARTCARD]
>> [/SAVECRED]
>> [[/DELETE] | [/PERSISTENT:{YES | NO}]]
>>
>> NET USE {devicename | *} [password | *] /HOME
>>
>> NET USE [/PERSISTENT:{YES | NO}]
>>
>>
>> More help is available by typing NET HELPMSG 3505.
>>
>> Suggestions for fixing this would be welcome.
>>

>
>
> As the error message shows, the command should have been:
>
> NET USE LPT1 \\D5LDYM11\EPSONC42 /PERSISTENT:YES
>
> You placed a what may have been superflous colon ( after the
> device name (LPT1), and then didn't complete the persistence switch
> (option with invalid value).
>
>

According to the Net Help output the device should be LPT1:
 
Reply With Quote
 
=?Utf-8?B?TWlrZTE5NDI=?=
Guest
Posts: n/a
 
      29th Dec 2006
Isn't this fun!!
Now we have

C:\DOCUME~1\Mike\MYDOCU~1\MYWEBS~1\BLINDA~1>net use lpt1:
\\D5LDYM11\EPSONC42 /p
ersistent:yes
System error 66 has occurred.

The network resource type is not correct.

So we have gotten past the syntax errors. Looking up system errors shows a
range from 600 to 800 which makes 66 the sign of a medium beast.
And every time this fails, for some reason the camera interface program
last installed opens 3 copies, each of which steps through 3 screens to be
closed.

"Michael W. Ryder" wrote:

> Bruce Chambers wrote:
> > Mike1942 wrote:
> >> Well, I gave the printer a short name as stated in Help and added the
> >> line given to a batch file run during STARTUP
> >> This is the result (copied from command page)
> >> C:\DOCUME~1\Mike\MYDOCU~1\MYWEBS~1\BLINDA~1>net use lpt1:
> >> \\D5LDYM11\EPSONC42 /persistent
> >>
> >> You used an option with an invalid value.
> >>
> >> The syntax of this command is:
> >>
> >>
> >> NET USE
> >> [devicename | *] [\\computername\sharename[\volume] [password | *]]
> >> [/USER:[domainname\]username]
> >> [/USER:[dotted domain name\]username]
> >> [/USER:[username@dotted domain name]
> >> [/SMARTCARD]
> >> [/SAVECRED]
> >> [[/DELETE] | [/PERSISTENT:{YES | NO}]]
> >>
> >> NET USE {devicename | *} [password | *] /HOME
> >>
> >> NET USE [/PERSISTENT:{YES | NO}]
> >>
> >>
> >> More help is available by typing NET HELPMSG 3505.
> >>
> >> Suggestions for fixing this would be welcome.
> >>

> >
> >
> > As the error message shows, the command should have been:
> >
> > NET USE LPT1 \\D5LDYM11\EPSONC42 /PERSISTENT:YES
> >
> > You placed a what may have been superflous colon ( after the
> > device name (LPT1), and then didn't complete the persistence switch
> > (option with invalid value).
> >
> >

> According to the Net Help output the device should be LPT1:
>

 
Reply With Quote
 
Bruce Chambers
Guest
Posts: n/a
 
      30th Dec 2006
Michael W. Ryder wrote:
>
> According to the Net Help output the device should be LPT1:



That's not what my system says. And the command works perfectly
without the colon.


--

Bruce Chambers

Help us help you:
http://dts-l.org/goodpost.htm
http://www.catb.org/~esr/faqs/smart-questions.html

They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. -Benjamin Franklin

Many people would rather die than think; in fact, most do. -Bertrand Russell
 
Reply With Quote
 
Bruce Chambers
Guest
Posts: n/a
 
      30th Dec 2006
Bruce Chambers wrote:
> Michael W. Ryder wrote:
>>
>> According to the Net Help output the device should be LPT1:

>
>
> That's not what my system says. And the command works perfectly
> without the colon.
>
>


.... Or with it, for that matter....


--

Bruce Chambers

Help us help you:
http://dts-l.org/goodpost.htm
http://www.catb.org/~esr/faqs/smart-questions.html

They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. -Benjamin Franklin

Many people would rather die than think; in fact, most do. -Bertrand Russell
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
No rightclick menu in program manager after installing finger prin =?Utf-8?B?QW5kZXJzIHN0cmFuZC1Ib2xt?= Windows XP Hardware 3 26th Apr 2007 03:49 PM
2nd user, when try to print doc, gets save-as file, will not prin =?Utf-8?B?cmljZW1vbnM=?= Microsoft Word Document Management 1 11th Nov 2006 02:09 PM
I cannot open report without a printer. I cannot print with a prin =?Utf-8?B?SW5kaW5mZXIgb2YgQk1TSQ==?= Microsoft Access Reports 1 15th Jun 2006 12:15 AM
Prin ter folder is empty; Add printer wizard doesn't work Paolo Windows XP Print / Fax 8 3rd May 2005 02:54 PM
I have set the printer and still cannot get my background to prin. =?Utf-8?B?S2lyYQ==?= Microsoft Word Document Management 2 15th Apr 2005 09:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:40 PM.