print from DOS program to usb printer

i have a DOS program called RealtPro
It gives me the option of printing to LPT1, LPT2 ports

The computer only has a USB or Network Printer
It does not have a LPT port.

How can I get it to print to USB or Network printer?

thanks

Background:
This is a new computer. All printers are the same as the old pc.
I copied the DOS from old pc to new using a flash drive.
The program works-just not the printer.
The printer did work on the old pc.
ANy settings or program that I should be looking for on the old PC?

webdottAsked:
Who is Participating?
 
JT92677Connect With a Mentor Commented:
First, on the computer that will run a DOS program and print to LPT1 or LPT2
you should SHARE the printer since this allows you to give it a short name and it works.

Go to Start/Settings/Printers and Faxes
Right Click the printer
Then SHARE
Use a share name with no spaces

For example I shared my Samsung ML-2850 series PCL printer as "SamsungPCL" (the share name)

Then check your computer name, Right Click "My Computer" then Properties, then Computer Name.
My Computer name also has no spaces, it is "Dell-M70"

Now Start/Run/CMD to get to a DOS command prompt.

Type in "NET VIEW" and you should see your computer name

You can also type in
NET VIEW \\[computer name]
in my case it would b e

net view \\Dell-M70

This will give you the needed information to create a connection between a device
like LPT1 or LPT2 and the resource on your computer, like the printer.

On my system I can type in

C:\net use lpt1: \\Dell-M70\SamsungPCL
The command completed successfully.

Then check with the Net Use command:

C:\net use
New connections will not be remembered. (because I don't use persistent)

Status       Local     Remote                    Network
-------------------------------------------------------------------------------
OK           LPT1      \\Dell-M70\SamsungPCL     Microsoft Windows Network
The command completed successfully.

You can simply put this in a CMD (or  BAT)  file and reference that file in
your  STARTUP group, or you can use the persistent approach, which I don't
use.

To delete the connection to LPT1 use

Net Use LPT1:  /delete

You can use LPT2 or LPT3 this way as well.

Hope this helps.

Jeff

0
 
wpathanCommented:
Share the usb printer and then map it to LPT1 using the below command

NET USE LPT1: \\[Computer Name]\Printer /PERSISTENT:YES
Then use the dos redirector >> to print to lpt1 as
>> LPT1
0
 
webdottAuthor Commented:
i am sorry. i am completely confused.
i have the printer on the network - name PRINT1
i then have a printer plugged into the pc by USB - name Canon MP830
The networked printer is shared to others on the network
how would i do the above map and command?
 
thanks
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
wpathanCommented:
If you have connected the printer using usb to the pc from which you want to print just use this for mapping
NET USE LPT1: \\[Computer Name]\Printer /PERSISTENT:YES
in place of [computer name] use the hostname of the pc on which the printer is connected using the usb cable after that print using the redirector.
All we are trying to achieve here is to map the usb port to ltp1 so that we can print using dos.
0
 
webdottAuthor Commented:
how do i map the printer?
i know that i can click on map network drive, how about the printer?
 
thanks
0
 
webdottAuthor Commented:
so i went to cmd and get the error 66
 
0
 
amt271158Commented:
We use a DOS program also and use the NET USE command as a batch file and put in the "All Users start up" folder so that it maps the 3 printers we use for DOS printing each time the computer is restarted or logged onto.

This is what it looks like in notepad and is titled "Printers.bat"


NET USE LPT1: \\COMPUTER1\PRINT1

NET USE LPT2: \\COMPUTER4\PRINT2

NET USE LPT3: \\COMPUTER2\PRINT3

This is our preferred method as we can change it easier if we move the printers around.

Hope this helps.
0
 
webdottAuthor Commented:
JT92677
 
thanks - this explains a lot.
I have been out of the office but will be back in tomorrow morning.
i will try this. i kept getting an error message, but thats because i was leaving
things out. i will let you know how it goes.
 
sorry for the long response
0
 
JT92677Commented:
Webdott

If the information is helpful, maybe you could remember to click on the "YES" button.

Thanks

Jeff


0
 
webdottAuthor Commented:
first off - thanks for answering the question on how to delete
a printer port after installing it - that was helpful since i mixed lpt1 + 2 up at first try.

secondly, thanks for going into detail as to how to do this.

this was awesome - thanks so much.
0
 
webdottAuthor Commented:
JT92677

first off - thanks for answering the question on how to delete
a printer port after installing it - that was helpful since i mixed lpt1 + 2 up at first try.

secondly, thanks for going into detail as to how to do this.
this was awesome - thanks so much.
0
 
t0t0Commented:
JT92677

Excellent explanation !!
0
All Courses

From novice to tech pro — start learning today.