Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

printui.dll command line in a batch file

5 views
Skip to first unread message

freddy

unread,
Dec 29, 2009, 11:13:01 AM12/29/09
to
I am using the printui.dll command line in a batch file. When I start the
batch file I see the print divers installing and then I get a "the arguments
are invalid" and the printer never get added. Also is there a way to log the
output like an installation log. Here is the code.

rundll32 printui.dll,PrintUIEntry /if /b "HP Color LaserJet 4700 PCL 6" /f
U:\Scripts\Printer\IP_Printing\Drivers\HP_Color_4700\hpc4700c.inf /r
"IP_172.29.49.47" /m "HP Color LaserJet 4700 PCL 6"


Thanks for helping me

Pegasus [MVP]

unread,
Dec 29, 2009, 11:33:31 AM12/29/09
to

"freddy" <fre...@discussions.microsoft.com> said this in news item
news:2422833C-210D-4F5C...@microsoft.com...

Your query has nothing to do with VB Scripting. I recommend you repost it in
a Windows 98 / 2000 / XP / Vista / 7 newsgroup. Remember to state your
operating system. You should also try your command with this switch: /r
"LPT1".

0 new messages