I often use notepad.exe for temporary messages. I never use it for something I need to save: I have normal text editors and MS OneNote for that.
When I shut down, multiple instances of Notepad is asking to save. What's worse, because of the Windows bug, when I press “no don’t save”, the notepad application stays alive, so I have to close it manually, and once again press “no don’t save”.
I’ve been fighting this problem for years. About 2 years ago, I’ve asked one of the software developers in my team to hack notepad.exe so it doesn’t asks for saving. Unfortunately, I had to reinstall my Windows recently, and I no longer work with that brilliant guy.
Then I’ve tried to use group policy with
taskkill /f /im notepad.exe logoff script, only to find out the logoff script is executed after all application are terminated.
I don’t want to install third-party notepad replacements.
I don’t want to disable shutdown prevention at all by tweaking registry. I want the apps like word and excel to be able to prevent shutdown. The problem is only with notepad.
Any ideas? Thanks in advance.