Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with rundll32 printui.dll script

Status
Not open for further replies.

jonnyknowsbest

Technical User
Feb 3, 2004
163
GB
I use the following script to install a printer connection to a printer stored on a web server:

rundll32 printui.dll,PrintUIEntry /b "\\ /if /f %windir%\inf\ntprint.inf /x /n "Printer1" /r " /m "HP LaserJet 4050 Series PCL 6" /u

rundll32 printui.dll,PrintUIEntry /y /n "\\
rundll32 printui.dll,PrintUIEntry /Xs /n "\\ attributes +direct

The first 2 lines work fine to install the printer and set it as the default. The third line also works to set the "Print directly to the printer" flag, but gives me a "Operation could not be completed" error, does anybody know why this happens?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top