Jump to content

Timeout Shutdown batch file?

RothschildDough

I've been looking around for a while on how to create my own timeout shutdown program, so that if I don't do anything on my computer for, say, 30 minutes, it'll automatically enter the shutdown process (w/ Win8.1) I have seen programs online but I'd much rather create my own, is this even possible with batch, as long as it's kept in the background at all times? Or would I have to go on to other languages?

Link to comment
Share on other sites

Link to post
Share on other sites

Official Profile for Addon Customs LTD and Custom Acrylics
Addon Customs -
Custom LED Lighting | Single colour and RGB available, hand sleeved | Now making Phanteks Case compatible LED KITS
Custom Acrylics - Custom computer parts | GPU backplates, Fan Grills, NZXT H440 Fascias and PSU covers | 3D printing and Laser Cutting Service available.

Link to comment
Share on other sites

Link to post
Share on other sites

i think you can create a shortcut to the shutdown program and specify a timer after which it occurs not sure if it works in windows (it does in linux) since i never used it.

Link to comment
Share on other sites

Link to post
Share on other sites

What about this information?

The single biggest problem in communication is the illusion that it has taken place.

Link to comment
Share on other sites

Link to post
Share on other sites

@[member=Echo] offshutdown -s -t 1800 -c "30 Minutes until shutdown"

Save this as timer.bat

@[member=Echo] offshutdown -a

Save this as timerCancel.bat

Edit: THESE ARE SUPPOSED TO BE LOWER CASE 'e' NOT THE MEMBER @Echo

Link to comment
Share on other sites

Link to post
Share on other sites

@[member='Echo'] offshutdown -s -t 1800 -c "30 Minutes until shutdown"

Save this as timer.bat

@[member='Echo'] offshutdown -a

Save this as timerCancel.bat

Edit: THESE ARE SUPPOSED TO BE LOWER CASE 'e' NOT THE MEMBER @Echo

 

I want it to be a timeout in meaning of a certain amount of time that I don't do anything on my computer. I often leave everything open when I go to bed, simply because I forget about the computer. I want to make it so that, at night usually, when I'm not doing anything on the computer for 30 minutes it'll shut itself down. I have already tried a manual shutdown timer like you've added here but I want to create a passive program that will run silently in the background of my computer. I'm willing to try other languages, but I'm wondering if it's possible to just do it in batch, but I don't think batch has detection capabilities. 

Link to comment
Share on other sites

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×