Printing from R:Base DOS to COM1 printer in Windows 2000 is successful.

Recap: Windows 2000, RBase 6.5 DOS, Windows Only laser on LPT1, Okidata on COM1, need 
to print to Okidata.

The command I was thinking of was MODE LPT1=COM1 (thank you RandyP) but for some 
reason that would not work.

The syntax that many suggested that did work was:

NET USE LPT1: /DELETE
NET USE LPT1:  \\servername\printername 

but there were some caveats:

- printername needs to be the SHARED name (use NET VIEW \\computerfullname to check)

- the server name can be longer than 8 characters, the DOS help says:
If the computername contains blank characters, enclose the double backslash (\\) and 
the computername in quotation marks (" "). The computername may be from 1 to 15 
characters long.

It sounds like the quotes do not include the share name but in our case the computer 
name did not contain spaces but it was 14 characters long and worked fine - no "s 
required.

The final batch file looked like this:
PATH=C:\RBDOS65;%PATH%
NET USE LPT1 /DELETE
NET USE LPT1 \\172016039004PB\OkidataM
RBASE65
NET USE LPT1 /DELETE

The final NET USE was necessary as the printer redirection affects all the sessions 
not just the RBase session.  The Laser printer can not be used from any application 
while RBase is running and LPT1 is redirected.

Thanks again for everyone's help!
Michael
--
Michael Moser
EXAQ Micro Services
www.exaq.com
Phone: 916-768-7656
Fax: 916-966-8313

 >>  Mike -

 >>  Try \\Cc1066888-aevo\"HP DeskJet 1220C"

 >>  If it works please let us know.

 >>  As I remember it the server name and the printer name
 >>  can't be longer than 8 characters and that those names can't
 >>  contain spaces.

 >>  Bernie

 >>  At 08:15 AM 1/8/2004 -0800, you wrote:
 >>  >Based on the entries listed in My Network Places I tried this on my own
 >>  system (XP Pro)
 >>  >
 >>  >net use lpt1: "\\Cc1066888-aevo\HP DeskJet 1220C"
 >>  >
 >>  >and got an error "66: The network resource type is not correct". 
 >>  Removing
 >>  the quotes results in a syntax error.  "HP DeskJet 1220C" is a shared
 >>  printer on machine Cc1066888-aevo.
 >>  >
 >>  >These things tend to be something small but significant...
 >>  >
 >>  >Thanks,
 >>  >Michael
 >>  >Michael Moser
 >>  >EXAQ Micro Services
 >>  >www.exaq.com
 >>  >Phone: 916-768-7656
 >>  >Fax: 916-966-8313
 >>  >
 >>  >using:
 >>  > >>  Mike,
 >>  >
 >>  > >>  Try this:
 >>  >
 >>  > >>  net use lpt1: \\YourPCNameInWindows\YourPrinterNameInWindows
 >>  >
 >>  > >>  > -----Original Message-----
 >>  > >>  > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
 >>  Michael
 >>  > >>  > Moser
 >>  > >>  > Sent: Thursday, January 08, 2004 12:57 AM
 >>  > >>  > To: RBASE-L Mailing List
 >>  > >>  > Subject: [RBASE-L] - Re: Printing from R:Base DOS 6.5 under
 >>  Windows 2000
 >>  > >>  >
 >>  > >>  >
 >>  > >>  > Thanks for the suggestion.
 >>  > >>  >
 >>  > >>  > NET USE LPT1:  \\servername\printername  is used (I think) to
 >>  > >>  > redirect a print job from the physical LPT1 device to a network
 >>  > >>  > printer.  In this case I have an okidata printer on COM1 and a
 >>  > >>  > laser on LPT1.  The RBase printer is set to OKIDATA1.
 >>  > >>  >
 >>  > >>  > R> output printer
 >>  > >>  > R> dir
 >>  > >>  > R> output screen
 >>  > >>  >
 >>  > >>  > Simply causes rbase to lock up with no return to the R> after the
 >>  > >>  > 3rd command.  No info to the printer, not even garbage.
 >>  > >>  >
 >>  > >>  > If I remember correctly R:Base really prints to the logical
 >>  > >>  > device PRN and there was some DOS level command that would
 >>  > >>  > redirect PRN to a physical device LPT1, COM1, etc.  (It might
 >>  > >>  > have been a command that redirected LPT1 to LPT2, COM2, etc.)  It
 >>  > >>  > is my understanding that NT does not handle output to PRN well,
 >>  > >>  > which is what causes this type problem to begin with.
 >>  > >>  >
 >>  > >>  > I remember doing this a number of years ago, how quickly we forget
 >>  :-)
 >>  > >>  >
 >>  > >>  > Michael
 >>  > >>  >
 >>  > >>  > Michael Moser
 >>  > >>  > EXAQ Micro Services
 >>  > >>  > www.exaq.com
 >>  > >>  > Phone: 916-768-7656
 >>  > >>  > Fax: 916-966-8313
 >>  > >>  >
 >>  > >>  >  >>  The DOS command is:
 >>  > >>  >
 >>  > >>  >  >>  NET USE LPT1: /DELETE
 >>  > >>  >  >>  NET USE LPT1:  \\servername\printername
 >>  > >>  >
 >>  > >>  >
 >>  > >>  >
 >>  > >>  >
 >>  > >>  >  >>  At 12:59 PM 1/7/2004 -0800, you wrote:
 >>  > >>  >  >>  >Happy New Year everyone!
 >>  > >>  >  >>  >
 >>  > >>  >  >>  >Typical story -- State client working happily on RBase
 >>  > >>  > program written
 >>  > >>  >  >>  years ago on Windows 98 system.  Hard disk crashes. Computer
 >>  > >>  > replaced with
 >>  > >>  >  >>  Windows 2000.  We are converting to R:Base for Windows but
 >>  > >>  > the conversion
 >>  > >>  >  >>  will not be completed for a couple of months and end of year
 >>  > >>  > processing,
 >>  > >>  >  >>  auditors, ....
 >>  > >>  >  >>  >
 >>  > >>  >  >>  >I remember that there is a DOS level printer redirection
 >>  > >>  > command for PRN
 >>  > >>  >  >>  that was used for R:Base for DOS with Windows NT and it seems
 >>  that
 >>  > >>  it
 >>  > >>  >  >>  worked
 >>  > >>  >  >>  for 2000 as well but I can't seem to remember it or find it.
 >>  > >>  >  >>  >
 >>  > >>  >  >>  >Anyone remember that or have a solution for printing from
 >>  > >>  > R:Base 6.5 DOS
 >>  > >>  >  >>  under windows 2000?
 >>  > >>  >  >>  >
 >>  > >>  >  >>  >Thanks!
 >>  > >>  >  >>  >Michael
 >>  > >>  >  >>  >
 >>  > >>  >  >>  >
 >>  > >>  >  >>  >Michael Moser
 >>  > >>  >  >>  >EXAQ Micro Services
 >>  > >>  >  >>  >www.exaq.com
 >>  > >>  >  >>  >Phone: 916-768-7656
 >>  > >>  >  >>  >Fax: 916-966-8313
 >>  > >>  >  >>  >
 >>  > >>  >  >>  >
 >>  > >>  >
 >>  >
 >>  >

--- RBASE-L
=======================3D=======================3
D=
TO POST A MESSAGE TO ALL MEMBERS:
Send a plain text email to [EMAIL PROTECTED]

(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
=======================3D=======================3
D=
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [EMAIL PROTECTED]
In the message SUBJECT, put just one word: INTRO
=======================3D=======================3
D=
TO UNSUBSCRIBE:
Send a plain text email to [EMAIL PROTECTED]
In the message SUBJECT, put just one word: UNSUBSCRIBE
=======================3D=======================3
D=
TO SEARCH ARCHIVES:
Send a plain text email to [EMAIL PROTECTED]
In the message SUBJECT, put just one word: SEARCH-n
(where n is the number of days). In the message body,
place any
text to search for.
=======================3D=======================3
D=

Reply via email to