printui.dll command line in a batch file with win XP sp2

F

freddy

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"
 

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