A Windows Vista forum. Vista Banter

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.

Go Back   Home » Vista Banter forum » Microsoft Windows Vista » Printing, Faxing and Scanning with Vista
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Printing, Faxing and Scanning with Vista A forum for using printers, scanners and fx with Windows Vista. (microsoft.public.windows.vista.print_fax_scan)

Using a script to set the default printer at start up after adding it



 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old October 21st 09, 03:07 PM posted to microsoft.public.windows.vista.print_fax_scan
SlickRCBD
external usenet poster
 
Posts: 19
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:53 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Optimization by vBSEO 3.0.0 RC6
Copyright ©2004-2024 Vista Banter.
The comments are property of their posters.