run at shutdown?

Discussion in 'MRU Blaster Forum' started by jocera, Oct 3, 2003.

Thread Status:
Not open for further replies.
  1. jocera

    jocera Registered Member

    Joined:
    Jan 28, 2003
    Posts:
    22
    hi all,

    is there a way to make mru-blaster run at shutdown without installing a shutdown launcher or similar programs?

    thanks
     
  2. Enyo

    Enyo Guest

    Code:
    On Error Resume Next
    
    Dim WshShell, oNet, fso, usr
    
    Set WshShell = Wscript.CreateObject("Wscript.Shell")
    
    Set oNet=createobject("WScript.Network")
    
    Set fso = CreateObject("Scripting.FileSystemObject")
    
    usr=oNet.UserName
    
    strCmd = ("mrublaster.exe -silent")
    
    WshShell.CurrentDirectory = "C:\Program Files\MRU-Blaster"
    
    WshShell.Run strCmd,1,TRUE
    
    fso.DeleteFile "C:\Documents And Settings\" & usr & "\Local Settings\Temp\*.*"
    
    fso.DeleteFolder "C:\Documents and settings\" & usr & "\Local Settings\Temp\*.*", True
    
    
    Yes. I call it in my logoff script.

    For info about adding a logoff script see http://www.microsoft.com/windows2000/en/server/help/default.asp?url=/windows2000/en/server/help/gptext_logoffscripts.htm
    http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/winxppro/proddocs/gptext_logoffscripts.asp

    Only works for XP/2K.

    Copy the above text and save it as logoff.vbs then add it to the local Group Policy as described on the above pages.
     
  3. jocera

    jocera Registered Member

    Joined:
    Jan 28, 2003
    Posts:
    22
    Enyo,

    thanks for the script and the info...

    i'll give it a try :)
     
Thread Status:
Not open for further replies.