running script when logoff

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
 
P

POP

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top