I would like to write a VBScript to change the default printer, based on which printer is connected.
I have a laptop that I use at work and at home, and I would like to run this script when starting windows so the default printer is always the correct one.
If there is another way to do this in XP, I’m all ears.
I would like to write a VBScript to change the default printer, based on
Share
WMI may suit.
— http://msdn.microsoft.com/en-us/library/aa394598(VS.85).aspx
You can also find out the domain and such like:
— http://msdn.microsoft.com/en-us/library/aa394586.aspx