vbs script countdown/Shutdown

vbs script countdown/Shutdown

Cool
  41% (5)
Works
  41% (5)
Doesnt work
  0% (0)
Poor
  0% (0)
Other
  16% (2)

Total Votes: 12

Author Message
CØLLØSUS

  • Total Posts : 21
  • Scores: 2
  • Reward points : 0
  • Joined: 1/3/2011
  • Status: offline
vbs script countdown/Shutdown Tuesday, January 11, 2011 8:50 PM (permalink)
0
This must work..if not tell me.
 
Set objShell = WScript.CreateObject("WScript.Shell")
i = 10
Do Until i = 0
chk = " [ "& i &" ] "
BtnCode = objShell.Popup("A Shutdown is planned" _
& vbNewLine & vbNewLine & chk _
& vbNewLine, 5, chk & "Counting down", 0+48+4096)
i = i -1
Wscript.Sleep 0
Loop
Set objFSO = CreateObject("Scripting.FileSystemObject")
' objFSO.DeleteFile(WScript.ScriptFullName)  'disabled
' ShutDown()                                               'disabled
msgBox "Bye bye..."
Set OpSysSet = GetObject("winmgmts:{(Shutdown)}//./root/cimv2").ExecQuery("select * from Win32_OperatingSystem where Primary=true")
for each OpSys in OpSysSet
OpSys.ShutDown()
next
 
#1

    Online Bookmarks Sharing: Share/Bookmark

    Jump to:

    Current active users

    There are 0 members and 1 guests.

    Icon Legend and Permission

    • New Messages
    • No New Messages
    • Hot Topic w/ New Messages
    • Hot Topic w/o New Messages
    • Locked w/ New Messages
    • Locked w/o New Messages
    • Read Message
    • Post New Thread
    • Reply to message
    • Post New Poll
    • Submit Vote
    • Post reward post
    • Delete my own posts
    • Delete my own threads
    • Rate post

    2000-2012 ASPPlayground.NET Forum Version 3.9