Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

Resolved Question

Force windows to make me close programs at logout

Mar 22, 2015 5:37AM PDT

I want a way I can make my computer force me to close programs at lo gout instead of automating the process because I have a habit of logging out when I have something important up. Does anybody know of a way to make Windows tell me to close programs before logging out or shutting down?

Discussion is locked

sabaraone has chosen the best answer to their question. View answer

Best Answer

- Collapse -
There is no such setting in Windows.
Mar 22, 2015 5:48AM PDT

There are apps that will autosave from time to time but Windows doesn't provide a native solution. You may want to write an app that resists shutdown. Here's an example.

Armed with this code you can extend it to only do what you want. Of course if you hold the power button you can override it again.
Bob

- Collapse -
PS. Link to the code base
Mar 22, 2015 5:48AM PDT
- Collapse -
Thanks
Mar 23, 2015 9:12AM PDT

I'll try and see what I can do with this. Thanks!

- Collapse -
Answer
Force Window to Close
Mar 24, 2015 9:41PM PDT

Before clicking on either restart of shutdown, Hold the Shift Key first and then shutdown or restart ...and only let go of the Shift Key after the environment as gone off.