Message popup at logoff or powerdown?

  • Thread starter Thread starter todd g.
  • Start date Start date
T

todd g.

Is there anyway to have a message pop up when logging off
of XP or shutting down? Like, "Turn of the printer"???
Thanks for any help.
 
todd g. said:
Is there anyway to have a message pop up when logging off
of XP or shutting down? Like, "Turn of the printer"???
Thanks for any help.

Recommend you use a 'power strip' to connect the computer and
other items. Then when your computer indicates it is no longer
running you can switch off the power strip to turn other items
off.

Bq
 
I wish is was that easy. thanks.
-----Original Message-----



Recommend you use a 'power strip' to connect the computer and
other items. Then when your computer indicates it is no longer
running you can switch off the power strip to turn other items
off.

Bq


.
 
Hello Todd,

Under XP Pro, you could use a logoff script to do this.

I suggest you first do some reading,
[Start]
| Help and Support |
Type LOGON SCRIPT [Enter]

Then under "Full-text Search Matches", read
1. Assign user logoff scripts, and
3. Scripts

Repeat for SHUTDOWN SCRIPT.


I hacked this script.

Copy and paste the following lines into Notepad.


'--- START ---
Option Explicit
On Error Resume Next
Dim WSHShell, msg, MyBox, j
Set WSHShell = WScript.CreateObject("WScript.Shell")

'Output message for dialog box

msg = "Turn off the printer" & vbCR
msg = msg & "---Do something else---" & vbCR

' Either delete previous line or copy line,
' and/or modify "---Do something else---"

j = "Todd"
MyBox = MsgBox (msg, 4096, j)
Set WshShell = Nothing
'--- END ---


Save file as "Todd.VBS", including the double-quotation
marks so the file will not be saved with a ".TXT"
extension.

Please post a reply in this thread with your findings.

Jan
 
Back
Top