Link to home
Start Free TrialLog in
Avatar of Steven
StevenFlag for United States of America

asked on

need help dissecting a batch script

can someone help me understand what this batch script is doing?  i'm being told it will add a network printer with the .inf driver located on a file share.  what's it look like to you?  it's not working.....and i'm being told it worked great in the past.  
rundll32 printui.dll,PrintUIEntry /if /b "Ricoh 550" /f "\\10.10.1.23\PC_User_SW\English\Prntdrvr\Ps_drvr\Win_2K_XP_VISTA\OEMSETUP.INF" /r "IP_10.10.1.23" /m "E-8100 PCL 6"

Open in new window

Avatar of Onity
Onity
Flag of United States of America image

here is a Microsoft article on it http://support.microsoft.com/kb/314486 , the command "rundll32 printui.dll,PrintUIEntry /?" without the quotes will bring up a display of what all the operands do(not sure if i have the right word, basically all the /x) with the exception of the one listed in that ms article


"Sample of How to Add an IPP Printer

rundll32 printui.dll,PrintUIEntry /b "DisplayPrinterName on http" /x /n "part of the n switch" /if /f %windir%\inf\ntprint.inf /r "http://hostname/printers/sharename/.printer" /m "HP Laserjet 4000 Series PCL"
Note The /x switch is not documented with /?. The /x switch expects /n even though it is not used. Also, you may be using a printer other than the HP Laserjet 4000 Series PCL. The /x flag treats the install as a “Web point and print.” This flag indicates that the printer is a masquerading (masq) printer. A masq printer is partly local printer and partly a network printer. A masq printer receives rich notifications from the remote print server. Without the /x option, the printer is a local printer with a redirected port. It works fine, but it has very limited notifications.
The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products."

I shall have a look what each of your operators do and post again later
ASKER CERTIFIED SOLUTION
Avatar of Onity
Onity
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Steven

ASKER

thx a lot!