Add Network Printer using rundll32

K

ken

Hi all,

i am trying to add printer for all users by using the
rundll32 command.

===========================================================
printui.dll,PrintUIEntry /if /b "HP Laser
Jet 3300 Series PCL 6" /c\\printserver \f "%windir%
\inf\ntprint.inf" /r "\\IC5\HP LaserJ
et 3300 Series PCL 6" /m "HP LaserJet 3300 Series PCL 6"
===========================================================

But it doesn't work. Our print server is
named "printserver". It always say my argument is
invalid. The shared printer name is "HP Laser Jet 3300
Series PCL 6".

Can anyone tell me what wrong with my syntax?

Thanks in advance!
 
K

Ken

Hi All,

I found the error in the previous post i got the "/f"
as "\f" but now i got a different error, it is saying that
it can't find the right version of driver for the printer,
which is quite strange, because if i run the add printer
wizard, i don't have any problem adding the printer.

I have tried the following with the "\v" but it still
doesn't work.
======================================================
printui.dll,PrintUIEntry /if /b "HP Laser
Jet 3300 Series PCL 6" /c\\printserver \f "%windir%
\inf\ntprint.inf" /r "\\IC5\HP LaserJet 3300 Series PCL
6" /m "HP LaserJet 3300 Series PCL 6" \v "windows 2000"
=====================================================

Any ideas?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top