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:\" /m "Xerox Phaser 1235 PS"

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

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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 /?

yarekGmailAuthor Commented:
I have removed the /h
Still have an error at  the first line:
Invalid arguments
The issue appears to be that "Xerox Phaser 1235 PS" is not listed in ntprint.inf on Windows 7.  You'll have to point to an .inf file which contains setup information for that driver.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Document Imaging

From novice to tech pro — start learning today.