A comprehensive guide to inducing computer crashes using a .bat file
For various reasons, you might find yourself needing to cause a computer crash intentionally. By utilizing your PC's Notepad application, you can craft a straightforward .bat (or 'batch') file that initiates an infinite loop of Command Prompt window openings, swiftly consuming your computer's RAM and resulting in a temporary crash. It's generally advised not to intentionally crash any computer other than your own, regardless of how brief the crash may be.
Procedures
Creating Your Own Batch File

Launch the Notepad application. You can do this by typing 'Notepad' into the Start search bar and then selecting the relevant application, or you can manually access it by opening the Start menu, scrolling down to 'Windows Accessories,' and opening Notepad from there.
- You can also right-click on your desktop, hover over 'New' in the context menu, and choose 'Text Document'.
Enter @echo off as the first line. This initial line in your batch script prevents it from terminating abruptly.
- Remember to press ↵ Enter after each code line.

Enter :crash next. The ':crash' directive establishes a looping point.

Proceed with start for the third line. This command triggers the opening of a Command Prompt window by your batch script.

Then add goto crash as the final line. This instruction directs the batch file to return to the loop point, causing it to continuously open Command Prompt windows and consume your system's RAM.

Save your document as a batch file. Text files possess modifiable file extensions. To designate your file as a .bat file:
- Access the 'File' tab in Notepad's top-left corner.
- Select 'Save As...'.
- Choose the 'Save as type' option at the bottom of the 'Save' window.
- Pick 'All Files' from the dropdown menu.

Select a name for your batch file. Simply input any desired name into the 'File Name' field. Ensure to append '.bat' (without quotes) at the end of your chosen name.
- If you're struggling to decide, 'mobile.bat' and 'cave.bat' are both excellent options.

Press 'Save'. Your .bat file is now primed for execution!
Running Your Batch File

Ensure all ongoing tasks are saved. Although the .bat file won't inflict actual harm on your computer, you'll need to reboot your system to terminate the .bat process. This may result in potential loss of unsaved progress in any open tasks.

Close all active browser windows. Once again, remember to save any work before shutting down your browser windows.

Right-click on your batch file. This action will trigger a context menu to appear.

Select 'Run as Administrator' from the menu. This initiates the execution of the .bat file, resulting in multiple Command Prompt windows rapidly appearing on your screen.

Power off your computer. As the .bat file progresses, you'll lose control of your mouse, necessitating a manual shutdown by holding down the power button.
Press your computer's power button once more. This action will reboot your computer; there might be a brief delay before the restart process begins after shutting down.
Useful Suggestions
-
To undo the effects of the .bat crash, simply restart your computer to resolve any issues.
-
When running the .bat crash on Windows 10, it may cause several processes to malfunction, leading to a spike in disk activity up to nearly 100 percent and slowing down your system. You can terminate these processes from Task Manager (Alt + Ctrl + Delete).
Important Notices
- Ensure all your work is saved before executing your .bat file.
- Although a batch file is harmless, creating and executing a file intended to crash a computer on any machine other than your own may lead to severe repercussions.
