Sfx Posted February 23, 2010 Posted February 23, 2010 Can somebody give me a bit of code I would use to make a script force shutdown at say 3 am on my computer?
kaotkbliss Posted February 23, 2010 Posted February 23, 2010 Shutdown ( code [, reason] ) Parameters code A combination of shutdown codes. See "remarks". reason [optional] user shudown reason code. Return Value Success: Returns 1. Failure: Returns 0 and @error is set to GetLastError(). Remarks The shutdown code is a combination of the following values: 0 = Logoff 1 = Shutdown 2 = Reboot 4 = Force 8 = Power down 16= Force if hung 32= Standby 64= Hibernate Add the required values together. To shutdown and power down, for example, the code would be 9 (shutdown + power down = 1 + 8 = 9). Standby or Hibernate are ignored if other codes are set. Also look at @HOUR 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy!
Sfx Posted February 24, 2010 Author Posted February 24, 2010 Any specific functions I should use for the time portion then?
FinalVersion Posted February 24, 2010 Posted February 24, 2010 Read the helpfile, people don't just give you code, they help you fix it, or better optimize it. [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center]
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now