Jump to content
HyperSync, HyperList and FTP are now back online ×
SuperPang

Seamless shutdown with PC power button

Recommended Posts

My cabinet runs Windows 7 with a HyperSpin shell (via Instant Sheller). I've wired my motherboard's power switch to a button outside my cabinet, and there are two ways that I can shut down my system:

Method #1: Quit HyperSpin

When I quit HyperSpin, I run a batch file that waits a few seconds and then sends a shutdown command to Windows. I added the delay because HyperSpin doesn't always close right away, which results in a message about how HyperSpin needs to close before Windows can shut down.

Method #2: Hit the power switch

Windows shuts down when the power button is pressed. However, 50% of the time, I get the message about how HyperSpin still needs to close.

I could add the AutoEndTasks registry key to force a shutdown, but I'm concerned that this could corrupt my HyperSpin files. Is there a better way to avoid the "Programs still need to close" message when I hit the power switch?

Share this post


Link to post
Share on other sites

https://blog-archive.josephcs.com/how-to-force-shutdown-or-restart/#main_content

Force Shutdown
To perform a Force Shutdown, type in Shutdown –s –f. Notice a new parameter –f? This parameter is responsible for Fore Shutdown.

Force Shutdown with Time
To perform a Timed Force Shutdown, type in Shutdown –s –f –t 00. This will Force Shutdown your PC in 00 seconds (waiting time). Setting it to 05 will shutdown your PC after 05 seconds i.e after waiting for 5 seconds.

Share this post


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

×
×
  • Create New...