Support IconSupport

  • FAQ
  • Command Line

email iconContact

Can't find the answer to your question here? Contact us.

twitter facebook you tube newsletter rss feed

Support IconTimed Shutdown - Command Line Parameters

These can be used when starting Timed Shutdown to automatically configure it. This can be useful if you regularly start the program with the same settings or want to use it in a batch file.


Clock Trigger

-trigger clock HHmmss


This is how to use the Clock trigger. Replace "HHmmss" with the time in Hours (HH), Minutes (mm) and Seconds (ss) you want the shutdown to commence.


e.g. "123456" represents 12:34:56 PM. The time MUST be entered in 24 hour format and ALL SIX digits must be used. This means if you wanted to set the time for 1 o'clock in the morning you would use "010000".


NOTE: The hours should be between 00 and 23, and the minutes and seconds should be between 00 and 59.


You can also use the optional date parameter:


-trigger clock HHmmss yyyyMMdd


This time the "yyyyMMdd" represents the Year (yyyy), Month (MM) and Day (dd).


NOTE: The Year should be 4 characters and the Month and Day should be 2 characters. If the Month or Day are only 1 character, they should be prefixed with a zero e.g. June should be represented "06".


As an example, to schedule the shutdown for 9:34:56 AM on the 4th December 2010 you would use:


-trigger clock 093456 20101204

Timer Trigger

-trigger timer ddHHmmss


This is how to use the Timer trigger. Similar to the Clock trigger, the trailing parameter "ddHHmmss" is used to set the Days (dd) Hours (HH), Minutes (mm) and Seconds (ss). Instead of setting the time you want the shutdown though, set how long you want to pass before the shutdown.


e.g. "00123456" will be triggered after 0 days, 12 hours, 34 minutes and 56 seconds.


NOTE: The Days should be between 00 and 99, the Hours should be between 00 and 23, and the minutes and seconds between 00 and 59. The maximum countdown is 99 days, 23 hours, 59 minutes and 59 seconds. Also like the clock trigger, if a value is only 1 character it needs to be prefixed with a zero e.g. Four days should be represented "04".

CPU Usage Trigger

-trigger cpu xx% xxs


To use the CPU usage trigger you need to specify the usage level want to trigger the shutdown (xx%). This should be represented as a percentage e.g. 10%. You can also optionally set the interval parameter (xxs), this is how long the CPU usage has to be below the usage level before the shutdown is triggered. If there is no interval parameter, then the last saved CPU interval value will be used.


As an example of how to use the trigger, if you wanted to shutdown when the CPU usage went below 10% for 20 seconds it would be:


-trigger cpu 10% 20s


NOTE: This trigger is only available in Timed Shutdown Plus.

Network Usage Trigger

-trigger network xxkb xxs


Similar to the CPU usage trigger, the network trigger also takes a usage parameter (xxkb) and an interval parameter (xxs). The usage parameter should be specified in Kilobytes e.g. 1024kb. The interval parameter is optional and if not set the last saved network interval value will be used.


Here is how you would set the program to trigger when the network usage was below 1 megabyte for 30 seconds:


-trigger network 1024kb 30s


NOTE: This trigger is only available in Timed Shutdown Plus.

Sound Level Trigger

-trigger sound above/below xx% xxs


The sound level trigger takes three parameters. The first specifies if it's triggered when the sound level is above the limit or below it (above/below). The second sets the limit (xx%) which is represented as a percentage e.g. 50%. Last is the optional interval parameter (xxs), this is how long the sound level has to be above/below the sound limit before the shutdown is triggered. If there is no interval parameter, then the last saved sound level interval value will be used.


To set the trigger to respond when the sound level is above 20% for 3 seconds you would use:


-trigger sound above 20% 3s


NOTE: This trigger is only available in Timed Shutdown Plus.

Application Close Trigger

-trigger close "application title" titlechange


The main parameter with this trigger is the application title ("application title"). As the name suggests this is the name of the application you want to trigger the shutdown. It should be encased in quotation marks as shown in the example. There is also the optional second parameter (titlechange), when this is used not only will closing the application fire the trigger, but also if the application's title changes.


To trigger when an open copy of notepad is closed use:


-trigger close "Untitled - Notepad"


NOTE: This trigger is only available in Timed Shutdown Plus.

Now Trigger

-trigger now


This trigger will immediately start the shutdown action.


NOTE: The final countdown will be used to stop accidental shutdowns. If you want to override this, use the -nocountdown switch.

Action

-action ACTION


This is how you set what the program should do when triggered. Replace ACTION with one of the following:

  • Hibernate
  • Lock
  • Logoff
  • Restart
  • Shutdown
  • Standby

NOTE: If there is no action switch present, the default will be to Shutdown.

Final Countdown Interval

-countdown xxs


Use this switch to set how many seconds the final countdown should be. Replace "xx" with the number of seconds.


e.g. -countdown 30s


NOTE: The number of seconds has to be between 0 and 60. If no value is set, the default value of 60 will be used.

Disable Final Countdown

-nocountdown


Use this to disable the final countdown completely. It is supposed to be used instead of the -countdown switch, but if they are both present the last one in the command line will take precedence.

Disable Force

-noforce


This tells the program not to use force when shutting down (see the FAQ for a more detailed explanation of what using force does).


NOTE: If using this switch running programs may prevent the shutdown.

Disable System Tray Icon

-notrayicon


Use this switch to hide the system tray icon when the program is running.


Please be aware, when the system tray icon is hidden the only way to abort a shutdown is during the final countdown. If the final countdown is also disabled, then the shutdown cannot be aborted.


NOTE: This command Line switch is only available in Timed Shutdown Plus.

Exit on Abort

-exitonabort


When this switch is used, the application will exit instead of returning to the main configuration screen when a shutdown is aborted.


NOTE: This command Line switch is only available in Timed Shutdown Plus.

Examples


Restart at 2:30 PM (default 60 second final countdown):


Timed Shutdown.exe -trigger clock 143000 -action restart


Shutdown after 12 minutes (final countdown of 10 seconds):


Timed Shutdown.exe -trigger timer 00001200 -countdown 10s


Shutdown immediately (no final countdown, don't use force):


Timed Shutdown.exe -trigger now -nocountdown -noforce