Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows 95 running DOS program,network printing

Status
Not open for further replies.

rfeenie

Technical User
Sep 29, 2000
292
GB
Hello

We are running a bunch of networked (tcp/ip)elonex's p2-500 PC's , windows 95. We have a DOS program which we would like to print from (within windows). The problem is our printers are not local they are on there own net port. Someone mentioned creating a 'batch' file for windows to load on startup to get windows to look to another LPT port to enable DOS printing?

I don't know how to do this can anyone assist? [sig][/sig]
 
I'm not sure exactly what you mean by printers being on their own net port, but do they show up on your network if you go to Add Printer? On a Win95 network, your printers must be shared out somehow.

All you have to do for DOS printing is assign the printer an LPT port when you set it up. If you already have the printers installed on your networked machines, just go into your the settings for one of your printers and click the Capture Port button. Type in the UNC sharename of your printer (\\NETWORK\PRINTER1), click OK and reconnect at logon.

Then you can choose the port you have set up as the port to use with that particular printer. You can do this for all your network printers if you want. DOS needs to have an LPT port specified for printing rather than a network path.

If you want to start from scratch, go to Add Printer, choose network, then pick your printer from the browse list. You will be given an option to indicate whether you print to MS-DOS. Say Yes, and the next screen you get tells you to capture a printer port. Finish the process of setting up the printer & you should be good to go. [sig][/sig]
 
thanx RachelD, worked a treat [sig][/sig]
 
You can use the "net use" statement to route the printers. Let's say the printer you want to print to is at:
computer-115 and its name is printer1

Just set up a batch file using edit.com like this:

net use lpt1: /delete
net use lpt1: \\computer-115\printer1

The first command gets rid of any pre-defined LPT1 redirects and the second maps the normal LPT1 output to the network printer. If you drop the batch file shortcut into your startup folder, it will automatically run when the machine starts up.

[sig][/sig]
 
On the workstation under settings- printers then under printer properties click on the detail tab and select capture printer port . This will capture ltp1 port and port it to your network printer in the path box place your printer name for example \\servername\sharename or \\computername (computer sharing printer out) \sharename . I have this working in the same circumstance where I work . [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top