I have accidently hit Shutdown instead of Log Off before. How is there time to run any of the aborts above? You have maybe five seconds until Shutdown. Just curious.
My Computer
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Home Premium 32-Bit - Build 7600 SP1
CPU
Intel Core i3-2120 3.30Ghz
Motherboard
Asus P8Z68-V LX Intel Z68 Socket H2 ATX
Memory
Kingston 4 GB DDR3 1333 mhz
Graphics Card(s)
AMD Radeon HD6670
Sound Card
Sound Blaster Audigy SE 24-Bit
Monitor(s) Displays
Asus VE228
Screen Resolution
1440 X 900
Hard Drives
OCZ Vertex 3 120 GB Sata 3 SSD ==
Kingston SH103/S3 120 G Hyper X 120 GB SSD ==
Western Digital 500 GB Caviar Green 7200 RPM ==
PSU
Corsair CX600M == 600 Watt
Case
NZXT Apollo - Silver with Clear Side Panel
Cooling
Three 120 mm Fans
Keyboard
Microsoft Natural 4000
Mouse
Microsoft Custom Optical 3000
Internet Speed
AT&T Fiber Optic Wireless Network
Antivirus
Microsoft Security Essentials
Browser
Chrome
Other Info
120 mm Blue LED Fan -- Three Blue LED Lazer Light Sticks
5 seconds isn't enough time.
If you look at the batch file I uploaded, right-click edit, look for Shutdown -r -f -t 5
Shutdown -s -f -t 5
-t is shutdown timer in seconds, currently 5.
both places, change to seconds you wish
save as type: All files (*.*)
shutdown.bat
that saves it as it is, a batch file
The READ ME files in both your batch files are of the File type. It might be better to make them .txt files so the user doesn't have to select a program to open them with!
My Computer
Computer type
Laptop
Computer Manufacturer/Model Number
Fujitsu LIFEBOOK
OS
Win 7 HP SP1 64-bit Vista HB SP2 32-bit Linux Mint 18.3
CPU
Intel(R) Pentium(R) CPU P6200 @ 2.13GHz
Motherboard
FUJITSU FJNBB06
Memory
4.00 GB
Graphics Card(s)
Intel(R) Graphics Media Accelerator HD
Sound Card
[1] Realtek High Definition Audio [2] Intel(R) Display Audio
Just create a hotkey shortcut. I hate the built in windows hot keys because you have to press ctl and alt plus another key, which is hard to do very quickly. I suggest you use autohotkey and create just one file called "abort.ahk", which contains only this
#a::
Run shutdown -a
return
which maps the keyboard combination of windowskey+a to run an immediate shutdown abort