Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Help need a .bat script
New Posts  All Forums:Forum Nav:

Help need a .bat script

post #1 of 28
Thread Starter 
can someone write me a .bat script that will rpevent the computer from shutting down please. I need it to run continuous
Ryzen
(8 items)
 
  
CPUMotherboardGraphicsRAM
AMD Ryzen 1700 Gigabyte AX370 Gaming K5 Nvidia GTX 770 G.Skill Trident Z 16GB 3000MHz 
Hard DriveCoolingOSPower
Samsung Evo 960 M.2 Stock AMD Windows 10 Pro Superflower 650W 
  hide details  
Reply
Ryzen
(8 items)
 
  
CPUMotherboardGraphicsRAM
AMD Ryzen 1700 Gigabyte AX370 Gaming K5 Nvidia GTX 770 G.Skill Trident Z 16GB 3000MHz 
Hard DriveCoolingOSPower
Samsung Evo 960 M.2 Stock AMD Windows 10 Pro Superflower 650W 
  hide details  
Reply
post #2 of 28
That makes no sense. Just leave it on?
post #3 of 28
Isn't the abort shutdown command "shutdown.exe -a" ?

I think it is.

New text file > type shutdown.exe -a > save as > all files > save as abort_shutdown.bat

Done.
post #4 of 28
^ /thread
post #5 of 28
Got caught with a pirated copy of Windows, didn't you?
Intellect v2
(9 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7-6700K Processor ASUS ROG MAXIMUS VIII HERO LGA1151 DDR4 M.2 SAT... EVGA GTX 1080 SC ACX 3.0 Crucial Ballistix Sport 32GB DDR4 2400 MT/s (PC... 
CoolingKeyboardPowerCase
Noctua NH-D15 Das Keyboard 4 Professional (Brown) Corsair AX860 Fractal Design Define R5 
Mouse
MIONIX NAOS 7000 
  hide details  
Reply
Intellect v2
(9 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7-6700K Processor ASUS ROG MAXIMUS VIII HERO LGA1151 DDR4 M.2 SAT... EVGA GTX 1080 SC ACX 3.0 Crucial Ballistix Sport 32GB DDR4 2400 MT/s (PC... 
CoolingKeyboardPowerCase
Noctua NH-D15 Das Keyboard 4 Professional (Brown) Corsair AX860 Fractal Design Define R5 
Mouse
MIONIX NAOS 7000 
  hide details  
Reply
post #6 of 28
New text document > copy and paste below code > save as type: all files (*.*) > save as: abort_shutdown.bat


@echo off
:Begin
shutdown -a
GOTO Begin
Edited by Killam0n - 3/9/11 at 7:15am
Core
(14 items)
 
  
CPUMotherboardGraphicsRAM
i7 920 D0 @ 4.0Ghz Asus P6X58D-E Diamond XOC 4870/512 @ 800//4400 Corsair 3x4gb DDR1600 
Hard DriveOptical DriveCoolingOS
2x500GB WD RE2 Raid0 Asus Combo, Asus Combo Corsair H80 Windows 7 Ultimate 64bit 
MonitorKeyboardPowerCase
HP 2408h Wide Saitek Eclipse II Corsair HX850W Antec 900 Two 
MouseMouse Pad
Logitech Mediaplay Cordless Black as in Dark abyss 
  hide details  
Reply
Core
(14 items)
 
  
CPUMotherboardGraphicsRAM
i7 920 D0 @ 4.0Ghz Asus P6X58D-E Diamond XOC 4870/512 @ 800//4400 Corsair 3x4gb DDR1600 
Hard DriveOptical DriveCoolingOS
2x500GB WD RE2 Raid0 Asus Combo, Asus Combo Corsair H80 Windows 7 Ultimate 64bit 
MonitorKeyboardPowerCase
HP 2408h Wide Saitek Eclipse II Corsair HX850W Antec 900 Two 
MouseMouse Pad
Logitech Mediaplay Cordless Black as in Dark abyss 
  hide details  
Reply
post #7 of 28
Thread Starter 
Quote:
Originally Posted by Killam0n View Post
OR use this:

@echo off
:Begin
shutdown -a
GOTO Begin
Cheers, thats just what I needed

and no, I get caught on here and my manager shuts my computer down
Ryzen
(8 items)
 
  
CPUMotherboardGraphicsRAM
AMD Ryzen 1700 Gigabyte AX370 Gaming K5 Nvidia GTX 770 G.Skill Trident Z 16GB 3000MHz 
Hard DriveCoolingOSPower
Samsung Evo 960 M.2 Stock AMD Windows 10 Pro Superflower 650W 
  hide details  
Reply
Ryzen
(8 items)
 
  
CPUMotherboardGraphicsRAM
AMD Ryzen 1700 Gigabyte AX370 Gaming K5 Nvidia GTX 770 G.Skill Trident Z 16GB 3000MHz 
Hard DriveCoolingOSPower
Samsung Evo 960 M.2 Stock AMD Windows 10 Pro Superflower 650W 
  hide details  
Reply
post #8 of 28
Quote:
Originally Posted by Atomfix View Post
Cheers, thats just what I needed

and no, I get caught on here and my manager shuts my computer down
Someone's naughty
post #9 of 28
I will accept payments in the forms of large sums of cash
Core
(14 items)
 
  
CPUMotherboardGraphicsRAM
i7 920 D0 @ 4.0Ghz Asus P6X58D-E Diamond XOC 4870/512 @ 800//4400 Corsair 3x4gb DDR1600 
Hard DriveOptical DriveCoolingOS
2x500GB WD RE2 Raid0 Asus Combo, Asus Combo Corsair H80 Windows 7 Ultimate 64bit 
MonitorKeyboardPowerCase
HP 2408h Wide Saitek Eclipse II Corsair HX850W Antec 900 Two 
MouseMouse Pad
Logitech Mediaplay Cordless Black as in Dark abyss 
  hide details  
Reply
Core
(14 items)
 
  
CPUMotherboardGraphicsRAM
i7 920 D0 @ 4.0Ghz Asus P6X58D-E Diamond XOC 4870/512 @ 800//4400 Corsair 3x4gb DDR1600 
Hard DriveOptical DriveCoolingOS
2x500GB WD RE2 Raid0 Asus Combo, Asus Combo Corsair H80 Windows 7 Ultimate 64bit 
MonitorKeyboardPowerCase
HP 2408h Wide Saitek Eclipse II Corsair HX850W Antec 900 Two 
MouseMouse Pad
Logitech Mediaplay Cordless Black as in Dark abyss 
  hide details  
Reply
post #10 of 28
Lucky you... I would have done the rm -rf type of joke if guys here weren't fast enough. Apart from that, why your manager shuts your computer ?

-Luxio
Hideaki
(15 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core-i5 2500k @ stock ASRock Z68 Extreme 7 Gen 3 MSI r6870 Hawk (TFIII) Crossfire Corsair Vengeance Blue 8GB (2x4GB) 1600 MHz DDR3 
Hard DriveHard DriveOptical DriveCooling
Seagate Barracuda 1TB Corsair Force 3 180GB ASUS NZXT Havik 
OSMonitorKeyboardPower
Windows 7 Ultimate 64 bits Dell U2311H Zowie Celeritas AZERTY Cooler Master Silent Pro Gold 1000W 
CaseMouseMouse Pad
CM 690 II Plus White R.A.T 9 Razer Destructor White 
  hide details  
Reply
Hideaki
(15 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core-i5 2500k @ stock ASRock Z68 Extreme 7 Gen 3 MSI r6870 Hawk (TFIII) Crossfire Corsair Vengeance Blue 8GB (2x4GB) 1600 MHz DDR3 
Hard DriveHard DriveOptical DriveCooling
Seagate Barracuda 1TB Corsair Force 3 180GB ASUS NZXT Havik 
OSMonitorKeyboardPower
Windows 7 Ultimate 64 bits Dell U2311H Zowie Celeritas AZERTY Cooler Master Silent Pro Gold 1000W 
CaseMouseMouse Pad
CM 690 II Plus White R.A.T 9 Razer Destructor White 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Operating Systems
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Help need a .bat script