Articles

Printing to network printer in DOS

March 13, 2005 at 08:44:20
Specs: Windows XP home, Pentium M 1G

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?


See More: Printing to network printer in DOS

Report •


#1
March 13, 2005 at 09:23:47

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

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


Report •

#2
March 13, 2005 at 09:40:49

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

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

?


Report •

#3
March 13, 2005 at 09:42:42

It worked! Your awesome - Thanks!

Report •

Related Solutions

#4
March 13, 2005 at 09:47:39

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

Report •

#5
March 13, 2005 at 10:09:58

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 •

#6
March 13, 2005 at 10:10:57

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

Report •

#7
March 13, 2005 at 10:35:39

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 •

#8
March 13, 2005 at 10:48:31

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 •


Ask Question