How to Crash Your Computer Using a Batch File
Open the Notepad app., Type @echo off., Type :crash., Type start for your third line of code., Type goto crash., Save your text file as a batch file., Name your batch file., Click "Save"., Save any work you have open., Close your browser windows...
Step-by-Step Guide
-
Step 1: Open the Notepad app.
You can do this by typing "Notepad" into the Start search bar and then clicking the pertinent app, or you can access it manually by opening the Start menu, scrolling down to "Windows Accessories"
and opening the Notepad app from there.
You can also right-click your desktop, hover over "New" in the context menu, and select "Text Document". -
Step 2: Type @echo off.
This is the first line in your batch code; it prevents your .bat file from cutting itself off.You'll need to tap ↵ Enter after each line of code. , The ":crash" command creates a loop point. , This will prompt your .bat file to open a Command Prompt window. , This is your fourth and final line of code, which will prompt the .bat file to return to the loop point; in this way, your .bat file will continuously open Command Prompt windows, thus eating up your system's RAM. , Text files have easily-edited file extensions.
To set up your file as a .bat file:
Click "File" in the top left corner of Notepad.
Click "Save As...".
Click the "Save as type" field at the bottom of the "Save" window.
Click "All Files" in the drop-down menu. , You can do this by typing any name into the "File Name" field.
Be sure to type ".bat" (excluding the quotes) at the end of whatever name you choose.
If you can't come up with a name, "mobile.bat" and "cave.bat" are both excellent choices. , You are now ready to execute your .bat file! , While the .bat file won't actually harm your computer, you will have to restart your computer in order to end the .bat cycle.
This means that you might lose progress on any work left open and unsaved. , Again, you'll want to save any work done here before exiting your respective browser windows. , This will prompt a context menu. , This will start running the .bat file; your screen should suddenly be full of duplicating Command Prompt menus. , Since you won't be able to move your mouse after a few seconds of the .bat running, you'll have to shut down your computer by holding down the power button. , This should start up your computer; you may have to wait for a few seconds after shutting down before restarting. -
Step 3: Type :crash.
-
Step 4: Type start for your third line of code.
-
Step 5: Type goto crash.
-
Step 6: Save your text file as a batch file.
-
Step 7: Name your batch file.
-
Step 8: Click "Save".
-
Step 9: Save any work you have open.
-
Step 10: Close your browser windows.
-
Step 11: Right-click your batch file.
-
Step 12: Click "Run as Administrator".
-
Step 13: Shut down your computer.
-
Step 14: Press your computer's power button again.
Detailed Guide
You can do this by typing "Notepad" into the Start search bar and then clicking the pertinent app, or you can access it manually by opening the Start menu, scrolling down to "Windows Accessories"
and opening the Notepad app from there.
You can also right-click your desktop, hover over "New" in the context menu, and select "Text Document".
This is the first line in your batch code; it prevents your .bat file from cutting itself off.You'll need to tap ↵ Enter after each line of code. , The ":crash" command creates a loop point. , This will prompt your .bat file to open a Command Prompt window. , This is your fourth and final line of code, which will prompt the .bat file to return to the loop point; in this way, your .bat file will continuously open Command Prompt windows, thus eating up your system's RAM. , Text files have easily-edited file extensions.
To set up your file as a .bat file:
Click "File" in the top left corner of Notepad.
Click "Save As...".
Click the "Save as type" field at the bottom of the "Save" window.
Click "All Files" in the drop-down menu. , You can do this by typing any name into the "File Name" field.
Be sure to type ".bat" (excluding the quotes) at the end of whatever name you choose.
If you can't come up with a name, "mobile.bat" and "cave.bat" are both excellent choices. , You are now ready to execute your .bat file! , While the .bat file won't actually harm your computer, you will have to restart your computer in order to end the .bat cycle.
This means that you might lose progress on any work left open and unsaved. , Again, you'll want to save any work done here before exiting your respective browser windows. , This will prompt a context menu. , This will start running the .bat file; your screen should suddenly be full of duplicating Command Prompt menus. , Since you won't be able to move your mouse after a few seconds of the .bat running, you'll have to shut down your computer by holding down the power button. , This should start up your computer; you may have to wait for a few seconds after shutting down before restarting.
About the Author
Kevin Lopez
Enthusiastic about teaching practical skills techniques through clear, step-by-step guides.
Rate This Guide
How helpful was this guide? Click to rate: