I have created two custom .bat files that shutdown/restart the computer, and which beforehand run some other (simple) commands that I want run just before shutting down.
Now I shut down/reboot my computer by doubleclicking these bat files. Not a big deal, but I was wondering whether one could modify the default behaviour of the power buttons in the start menu to do that (by having them running the .bat files, or maybe in some other way having them run the same commands before the do what they do).
Now I shut down/reboot my computer by doubleclicking these bat files. Not a big deal, but I was wondering whether one could modify the default behaviour of the power buttons in the start menu to do that (by having them running the .bat files, or maybe in some other way having them run the same commands before the do what they do).