Introduction: Fake Blue Screen of Death
Hey! This is my first instructable, so please be patient :)
Today I've decided to create a fake BSOD with a .bat and a .hta file. It starts up and prompts the user:
- Start BSOD
- Exit Program
From there, it opens a .hta file that displays the infamous Blue Screen of Death. To exit, the user must press Ctrl + Shift + Esc and kill "Microsoft HTML Host App".
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: The Batch File
The first part of the batch file contains a CHOICE /c:12 /n > nul, which will create a choice (with no echo) between the key 1 and 2. Then there's IF %ERRORLEVEL%=1 goto BSOD, which goes to the BSOD activation part. IF %ERRORLEVEL%=2 exit, just exits the program.
The second part, call "Fake BSOD.hta" will call (open) our BSOD page, then it will do the same thing as the first part of the file, having a CHOICE and the two IF statements.
Step 2: The .hta File
The .hta file is like a .html file, but instead it'll run locally through Microsoft HTML Host Service. It contains statements that tell the page to hide the scrollbar, start fullscreen and hide it from the taskbar. It contains the BSOD image, and the section will just make the whole page blue.
Step 3: The Whole Project
That's basically it! I hope you enjoyed it. Don't forget to download the full project and give me suggestions.