Page 1 of 1

Difference of Shutdown and Power Down?

Posted: 13 Sep 2021, 19:35
by nutnutwin
I have read document here
https://www.autohotkey.com/docs/commands/Shutdown.htm

and tried using
> Shutdown, 1
shutdown
> Shutdown, 8
Power Down
and they seems to do the same on Windows 10(Pro, 20H2). I wonder what is the difference
--- ✄ -----------------------
I remember in Windows 95/98, there was a "shutodwn screen", and after that I had to manually "turn off power"
I wonder if this is what shutdown flag means...

Thank you for your time.

Re: Difference of Shutdown and Power Down?

Posted: 13 Sep 2021, 20:09
by mikeyww
My recollection is that 1 on some systems would sleep the system, so I recommend using 8 to shut down.
The "Power down" value (8) shuts down the system and turns off the power.

Re: Difference of Shutdown and Power Down?

Posted: 14 Sep 2021, 00:56
by nutnutwin
mikeyww wrote:
13 Sep 2021, 20:09
My recollection is that 1 on some systems would sleep the system, so I recommend using 8 to shut down.
The "Power down" value (8) shuts down the system and turns off the power.
Thank you for your advice.
I was about to go 1(Shutdown)+4(Force)+8(Power Down) in case it does not shutdown...
I will go with 8

Re: Difference of Shutdown and Power Down?  Topic is solved

Posted: 14 Sep 2021, 05:06
by mikeyww
The documentation is vague and somewhat confusing on this command, probably because these things might work slightly differently on different systems. Although it appears that 8 or 9 should both work, I think I would stick with 8 if it works.

Forcing a scripted shutdown (option 4) is probably not a great idea, because it might end up causing a loss of data if you have unsaved files.

Re: Difference of Shutdown and Power Down?

Posted: 28 Sep 2021, 19:24
by nutnutwin
mikeyww wrote:
14 Sep 2021, 05:06
The documentation is vague and somewhat confusing on this command, probably because these things might work slightly differently on different systems. Although it appears that 8 or 9 should both work, I think I would stick with 8 if it works.

Forcing a scripted shutdown (option 4) is probably not a great idea, because it might end up causing a loss of data if you have unsaved files.
Hi, sorry for the late reply.
Yes, forcing is not good in this situation.