AutoIt Forums: Timed shutdown/logoff/reboot/hibernate - AutoIt Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Timed shutdown/logoff/reboot/hibernate Rate Topic: -----

#1 User is offline   SlimShady 

  • AutoIt lover
  • PipPipPipPipPipPipPip
  • Group: Full Members
  • Posts: 2,383
  • Joined: 08-April 04
  • Location:The Netherlands

Posted 26 November 2004 - 07:50 PM

With this utility you can shutdown/logoff/reboot/hibernate your computer in 24 hours.
You can tell it how many seconds in advance or give it the time (24-hours style).
Syntax is:

Quote

Shutdown.exe /Exec /Config /Opt=Shutdown /Time=15

1. All the parameters are optional.
2. If you passed both the parameters /Config and /Exec, the config window will show.
3. If you don't specify any parameters, the config window is shown.
4. The /Opt parameter can have any of the following (case insensitive): shutdown/logoff/reboot/hibernate
5. The /Time parameter can have: the time in seconds before performing the action or the time with colon (24-hours style)
NOTE: You don't have to use leading zeroos.
6. If you only specify /Exec, the time and option is read from the ini file.
If no settings have been specified, the utility will shutdown the computer in 15 seconds.
7. I can guarantee that the Cancel button works :)

Examples:
1. Shutdown.exe
2. Shutdown.exe /Exec
3. Shutdown.exe /Config
4. Shutdown.exe /Exec /Opt=Reboot
5. Shutdown.exe /Exec /Opt=Shutdown
6. Shutdown.exe /Exec /Time=15
7. Shutdown.exe /Exec /Time=12:15
8. Shutdown.exe /Exec /Opt=Shutdown /Time=15
9. Shutdown.exe /Exec /Opt=Reboot /Time=12:15

Screenshot:


Download:
Attached File  Shutdown.zip (116.03K)
Number of downloads: 235

This post has been edited by SlimShady: 03 December 2004 - 11:20 AM


#2 User is offline   Chris_1013 

  • Mass Spammer!
  • PipPipPipPip
  • Group: Full Members
  • Posts: 347
  • Joined: 12-February 04

Posted 26 November 2004 - 07:52 PM

This looks good. I think someone posted a utility they'd written (BSUM or something like that it was called), that would shutdown the PC at a specific time. I'd like to see this too, because I'm wanting to code a util that will allow you to specify a shutdown time and pop up a countdown say a minute before to warn you.

#3 User is offline   ezzetabi 

  • さくらが さいた
  • PipPipPipPipPipPipPip
  • Group: Full Members
  • Posts: 2,011
  • Joined: 20-February 04

Posted 26 November 2004 - 09:31 PM

Seems pretty easy to do... Do you have problems, Chris_1013?

#4 User is offline   SlimShady 

  • AutoIt lover
  • PipPipPipPipPipPipPip
  • Group: Full Members
  • Posts: 2,383
  • Joined: 08-April 04
  • Location:The Netherlands

Posted 26 November 2004 - 09:49 PM

Chris_1013, on Nov 26 2004, 07:52 PM, said:

This looks good. I think someone posted a utility they'd written (BSUM or something like that it was called), that would shutdown the PC at a specific time. I'd like to see this too, because I'm wanting to code a util that will allow you to specify a shutdown time and pop up a countdown say a minute before to warn you.

Y'know that's a great idea.
I will try to make it tomorrow.

#5 User is offline   stingjoel 

  • Member
  • Pip
  • Group: Full Members
  • Posts: 39
  • Joined: 04-November 04

Posted 27 November 2004 - 01:42 AM

Chris_1013,

That task is already done at BSMU(BSMultipurposeUtility)....just like what you write below....try it...
If the shutdown countdown pop up show and you don't want to shutdown, just click WIN+ALT+c then disable shutdown....your computer will not shutdown...:)

I'll add some feature at BSMU...not only shutdown, but also suspend, hibernate, force shutdown, lock computer etc. (I have some great idea [IMHO :D ] that will implement in BSMU)...

Chris_1013, on Nov 27 2004, 01:52 AM, said:

This looks good. I think someone posted a utility they'd written (BSUM or something like that it was called), that would shutdown the PC at a specific time. I'd like to see this too, because I'm wanting to code a util that will allow you to specify a shutdown time and pop up a countdown say a minute before to warn you.


#6 User is offline   Chris_1013 

  • Mass Spammer!
  • PipPipPipPip
  • Group: Full Members
  • Posts: 347
  • Joined: 12-February 04

Posted 29 November 2004 - 10:27 AM

Yeah, I know it's in BSMU, that's why I didn't want to re-invent the wheel, and was hoping I could see your code for how you did it. :-)

#7 Guest_keller999_*

  • Group: Guests

Posted 30 November 2004 - 08:22 PM

Here's an AutoShutdown script I wrote for a school district. Parameters are ::

AutoShutdown.exe <Time to cancel shutdown> <Time after cancel to ask again>

This is designed to be run by a scheduler, such as Windows Task Scheduler or Novell policies.

Good luck!

Attached File(s)


This post has been edited by keller999: 30 November 2004 - 08:23 PM


#8 User is offline   SlimShady 

  • AutoIt lover
  • PipPipPipPipPipPipPip
  • Group: Full Members
  • Posts: 2,383
  • Joined: 08-April 04
  • Location:The Netherlands

Posted 03 December 2004 - 11:22 AM

I updated the script. You can now specify a time.
Currently you can't choose a day so the action will be performed within 24 hours.
See the first post for more info.

#9 User is offline   ali 

  • Member
  • Pip
  • Group: Full Members
  • Posts: 53
  • Joined: 12-September 04

Posted 03 December 2004 - 05:08 PM

hvnt had a chance to test this out...but will do later on...keep it up :thumbsup:

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users