How to Crash Your Computer Using a Batch File

For whatever reason, you may want to crash your computer. Using your PC's Notepad app as a platform, you can create a simple .bat (or 'batch') file that creates an infinite loop of opening Command Prompt windows; this will rapidly consume...

Part 1 of 2:

Creating Your Batch File

  1. Picture 1 of How to Crash Your Computer Using a Batch File
    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.
    1. You can also right-click your desktop, hover over "New" in the context menu, and select "Text Document".
  2. Picture 2 of How to Crash Your Computer Using a Batch File
    Type @echo off. This is the first line in your batch code; it prevents your .bat file from cutting itself off.[1]
    1. You'll need to tap Enter after each line of code.
  3. Picture 3 of How to Crash Your Computer Using a Batch File
    Type :crash. The ":crash" command creates a loop point.
  4. Picture 4 of How to Crash Your Computer Using a Batch File
    Type start for your third line of code. This will prompt your .bat file to open a Command Prompt window.
  5. Picture 5 of How to Crash Your Computer Using a Batch File
    Type goto crash. 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.
  6. Picture 6 of How to Crash Your Computer Using a Batch File
    Save your text file as a batch file. Text files have easily-edited file extensions. To set up your file as a .bat file:
    1. Click "File" in the top left corner of Notepad.
    2. Click "Save As...".
    3. Click the "Save as type" field at the bottom of the "Save" window.
    4. Click "All Files" in the drop-down menu.
  7. Picture 7 of How to Crash Your Computer Using a Batch File
    Name your batch file. 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.
    1. If you can't come up with a name, "mobile.bat" and "cave.bat" are both excellent choices.
  8. Picture 8 of How to Crash Your Computer Using a Batch File
    Click "Save". You are now ready to execute your .bat file!
Part 2 of 2:

Executing Your Batch File

  1. Picture 9 of How to Crash Your Computer Using a Batch File
    Save any work you have open. 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.
  2. Picture 10 of How to Crash Your Computer Using a Batch File
    Close your browser windows. Again, you'll want to save any work done here before exiting your respective browser windows.
  3. Picture 11 of How to Crash Your Computer Using a Batch File
    Right-click your batch file. This will prompt a context menu.
  4. Picture 12 of How to Crash Your Computer Using a Batch File
    Click "Run as Administrator". This will start running the .bat file; your screen should suddenly be full of duplicating Command Prompt menus.
  5. Picture 13 of How to Crash Your Computer Using a Batch File
    Shut down your computer. 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.
  6. Picture 14 of How to Crash Your Computer Using a Batch File
    Press your computer's power button again. This should start up your computer; you may have to wait for a few seconds after shutting down before restarting.
Update 04 March 2020
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile