running script when logoff

  • Thread starter Thread starter libin918
  • Start date Start date
L

libin918

hi there,

i'm tring to run a script (reminder.vbs) when i shutdown my local
machine. as some guys suggested, i run gpedit.msc and setup the script
in logoff. but it seems nothing happen when i shutdown my pc. i tested
the script and it works fine. the following is the script. pls help and

thanks in advance.


Option Explicit


Dim exePath, objShell


exePath = "c:\reminder.exe"


Set objShell = WScript.CreateObject("WScript.Shell")


objShell.Run exePath


BL
 
In
hi there,

i'm tring to run a script (reminder.vbs) when i shutdown my
local
machine. as some guys suggested, i run gpedit.msc and setup the
script
in logoff. but it seems nothing happen when i shutdown my pc. i
tested
the script and it works fine. the following is the script. pls
help
and

thanks in advance.


Option Explicit


Dim exePath, objShell


exePath = "c:\reminder.exe"


Set objShell = WScript.CreateObject("WScript.Shell")


objShell.Run exePath


BL

You'd get more and better responses if you didn't multi-post all
over creation:
Learn to cross-post.
 
Back
Top