[WEB4LIB] Printer Switching

Cantona, Eric ECantona at plcmc.org
Mon Sep 9 15:44:33 EDT 2002


You could script the "Default printer" on the client according to the hour.

The registry key in question is:
[HKEY_LOCAL_MACHINE\Config\0001\System\CurrentControlSet\Control\Print\Print
ers]
"Default"="Laser RefDesk"


Your startup script could be something like (paraphrasing here):

'NOTE: Start Script
Set WshShell = WScript.CreateObject("WScript.Shell")	
If hour(now) >=15 Then
	MyShell.regwrite
[HKEY_LOCAL_MACHINE\Config\0001\System\CurrentControlSet\Control\Print\Print
ers_
"Default"="Laser Lab"

Else MyShell.regwrite
[HKEY_LOCAL_MACHINE\Config\0001\System\CurrentControlSet\Control\Print\Print
ers_
"Default"="Laser RefDesk"
End if
'NOTE: End Script


This is a Win9X example.  The name of the file could be SetPrn.vbs

Hope this helps,


-----Original Message-----
From: Thomas Ryan [mailto:tryan at cbpl.lib.ia.us]
Sent: Monday, September 09, 2002 2:50 PM
To: Multiple recipients of list
Subject: [WEB4LIB] Printer Switching


Hello all,

I have a question regarding printing. We have ran into a situation in =
which I am not sure how to take care of. We presently have a computer =
lab that is open the whole time we are open, but it is only manned after =
3:00. The problem we would like to resolve is have the lab print to the =
printer we have at our Reference Desk during the day and at 3:00 into =
the lab for the rest of the day. Both printers reside on a NT 4.0 box. I =
would like to make this automated so I do not have staff playing in the =
servers if I don't have to.

Any Help will be appreciated,

Tom Ryan
Computer Systems Tech.
Council Bluffs Public Library


*********************************************************************
Due to deletion of content types excluded from this list by policy,
this multipart message was reduced to a single part, and from there
to a plain text message.
*********************************************************************



More information about the Web4lib mailing list