Computing.Net > Forums > Networking > Printing to network printer in DOS

Printing to network printer in DOS

Reply to Message Icon

Original Message
Name: mcavoym1
Date: March 13, 2005 at 08:44:20 Pacific
Subject: Printing to network printer in DOS
OS: Windows XP home
CPU/Ram: Pentium M 1G
Comment:

Hi, I am trying to print to a network printer from DOS. I have tried the following command:

net use lpt2:\\pavilion\hp1100/persistent:yes

but it keeps returning

"System error 67 has occured.

The network name cannot be found

I can print to the printer through my windows program, and I have double checked the spelling... I can PING the pavilion (computer name)...

Its a wireless network - Any ideas?


Report Offensive Message For Removal


Response Number 1
Name: steigrafx
Date: March 13, 2005 at 09:23:47 Pacific
Reply: (edit)

The net use command is correct, but you're missing two spaces. It should be:

net use lpt2: \\pavilion\hp1100 /persistent:yes


Report Offensive Follow Up For Removal

Response Number 2
Name: mcavoym1
Date: March 13, 2005 at 09:40:49 Pacific
Reply: (edit)

Its hard to see where the spaces are... Is there it

net (space) use (space) lpt2: (space) \\pavilion\hp1100 (space)/persistent:yes

?


Report Offensive Follow Up For Removal

Response Number 3
Name: mcavoym1
Date: March 13, 2005 at 09:42:42 Pacific
Reply: (edit)

It worked! Your awesome - Thanks!


Report Offensive Follow Up For Removal

Response Number 4
Name: mcavoym1
Date: March 13, 2005 at 09:47:39 Pacific
Reply: (edit)

At least it accepted the command - Program just hangs when I try to print :-(


Report Offensive Follow Up For Removal

Response Number 5
Name: steigrafx
Date: March 13, 2005 at 10:09:58 Pacific
Reply: (edit)

Could use more info. Is this one PC with Windows running a DOS program? And is the printer physically connected to the computer and set as shared, or is it actually on a print server?


Report Offensive Follow Up For Removal


Response Number 6
Name: steigrafx
Date: March 13, 2005 at 10:10:57 Pacific
Reply: (edit)

I just realized that you've set the printer as LPT2. Have you tried using the same command with LPT1?


Report Offensive Follow Up For Removal

Response Number 7
Name: mcavoym1
Date: March 13, 2005 at 10:35:39 Pacific
Reply: (edit)

Its a computer with a printer connected and shared - I didn't use LPT 1 because I do physically hook this computer to the printer at work (docking station) its just easier to do it wireless at home.

I got it to work a couple of times, but its sporadic. If I shut the program down and restart it it will print again. Could be the program - Its a pain in the you know what in a lot of ways.


Report Offensive Follow Up For Removal

Response Number 8
Name: steigrafx
Date: March 13, 2005 at 10:48:31 Pacific
Reply: (edit)

I know what you mean. Our "bread and butter" database on my 70+ user business network is an old DOS app called Advanced DB-Master. Our printers are all networked so each machine needs to have the printer installed to a TCP/IP port and the Net Use command must be issued. There's just no getting around it...DOS is dead (we're in the process of moving to a new Windows database).


Report Offensive Follow Up For Removal






Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Printing to network printer in DOS

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes Today.
Discuss in The Lounge