Welcome to Vista Banter. You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to ask questions and reply to others posts, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact support. |
|
Printing, Faxing and Scanning with Vista A forum for using printers, scanners and fx with Windows Vista. (microsoft.public.windows.vista.print_fax_scan) |
|
LinkBack | Thread Tools | Display Modes |
|
|||
Using a script to set the default printer at start up after adding it
How do I set the default printer using a batch file? Due to problems
with a win98se printer share that ONLY happens with Vista 64 HP, I need to reinstall the printer every time I reboot. With help in previous posts, I have the following technically two-line batch file so far: rundll32 printui.dll,PrintUIEntry /dl /n "hp812c" /c\\GATEWAY rundll32 printui.dll,PrintUIEntry /if /b "HP812c" /c\\GATEWAY /f "%windir%\inf\ntprint.inf" /r "\\Slickswintel\hp812c" /m "HP DeskJet 812C" I need a final line to set the newly created HP812C to be the default printer, but can't figure out how to do so from the help file I get from rundll32.printui.dll.PrintUIEntry /? Could somebody please propose what the command should look like? This is my first ever attempt at scripting printer management. The printer is shared as hp812c on a computer called slickswintel that's been happily running win98SE for a decade. The Vista 64 home premium computer is called gateway since I feared that slicksgateway was too long and was why the win98se machine crashed when trying to access the gateway shares. Turns out I was wrong, but never changed it back... |
Thread Tools | |
Display Modes | |
|
|