Link to home
Start Free TrialLog in
Avatar of yarekGmail
yarekGmail

asked on

command line printer installation

Hello experts,
I have a commabnd line .BAT file that works perfectly with XP but not with SEVEN:
This simply installs a new PS printer Xerox Phaser 1235 PS



C:\Windows\system32\rundll32.exe printui.dll,PrintUIEntry /ia /m "Xerox Phaser 1235 PS" /h "Intel" /f "%windir%\inf\ntprint.inf" /u

C:\Windows\system32\rundll32.exe printui.dll,PrintUIEntry /if /b "FlashProspectus" /f "%windir%\inf\ntprint.inf" /r "c:\flashprospectus.ps" /m "Xerox Phaser 1235 PS"


Any idea on how to make it run correctly on SEVEN ?

installPrinter.txt
Avatar of Aaron Cumiskey
Aaron Cumiskey
Flag of United Kingdom of Great Britain and Northern Ireland image

Looks like the "/h" in the first command line, and the /r in the second have changed in 7

To look at the qualifiers taken by this dll simply enter
Rundll32 Printui.dll,PrintUIEntry /?

Avatar of yarekGmail
yarekGmail

ASKER

I have removed the /h
Still have an error at  the first line:
Invalid arguments
ASKER CERTIFIED SOLUTION
Avatar of Shift-3
Shift-3
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