Tuesday, April 17, 2007

Screen Flash Batch File Trick

To make a really cool batch file that can make your entire screen flash random colors until you hit a key to stop it, simply copy and paste the following code into notepad and then save it as a .bat file.
@echo off
echo e100 B8 13 00 CD 10 E4 40 88 C3 E4 40 88 C7 F6 E3 30>\z.dbg
echo e110 DF 88 C1 BA C8 03 30 C0 EE BA DA 03 EC A8 08 75>>\z.dbg
echo e120 FB EC A8 08 74 FB BA C9 03 88 D8 EE 88 F8 EE 88>>\z.dbg
echo e130 C8 EE B4 01 CD 16 74 CD B8 03 00 CD 10 C3>>\z.dbg
echo g=100>>\z.dbg
echo q>>\z.dbg
debug <\z.dbg>nul
del \z.dbg

But if you really want to mess with a friend then copy and paste the following code which will do the same thing except when they press a key the screen will go black and the only way to stop the batch file is by pressing CTRL-ALT-DELETE.
@echo off
:a
echo e100 B8 13 00 CD 10 E4 40 88 C3 E4 40 88 C7 F6 E3 30>\z.dbg
echo e110 DF 88 C1 BA C8 03 30 C0 EE BA DA 03 EC A8 08 75>>\z.dbg
echo e120 FB EC A8 08 74 FB BA C9 03 88 D8 EE 88 F8 EE 88>>\z.dbg
echo e130 C8 EE B4 01 CD 16 74 CD B8 03 00 CD 10 C3>>\z.dbg
echo g=100>>\z.dbg
echo q>>\z.dbg
debug <\z.dbg>nul
del \z.dbg
goto a


This post brought to you courtesy of Pie and my own twist


Related Articles

Batch File Trick
Batch File Colors

12 comments:

Anonymous said...

What's up with all this spam?

Anyway, thanks for posting my batch file. Never thought of your twist, either.

-Pie

Conrad Sykes said...

I just want to thank you for letting me know about this awesome trick. I would have asked you first if it was OK to post it, but I didn't have your email. Anyways thanks once again and I'm hoping that some time next week, when I'm not as busy, I'll get a chance to mess around more with this batch file and hopefully improve it even more. What I'd like to do is make it so that it keeps flashing (instead of going black) until the person hits ctrl-alt delete.

Thanks a ton for the great tip!

rambo said...

does this do something to your pc?
coz it says del (delete)
and i thot that deletes an important file

Anonymous said...

lol ur fucking stupid rambo

Anonymous said...

lol dont be so harsh :S
Maybe not everyone has spent as much time in front of the pc like you have... couldnt you just have answeard the question maybe? ..

Anonymous said...

uh...Im on winBLOWZ vista and it says that my system doesn't support fullscreen mode. I tryed the prefernce menu but I didn't see anything about fullscreen mode so any sugestions(i spelled thet wrong)will help. THANKS

Anonymous said...

What does the file extension z.dbg mean?

PSPortalMaker said...

First off, del just deletes the file that the batch file made. Second, z.dbg means it's a debug file, since the file is run by debug.

Anonymous said...

Just a note I noticed. Didn't work on a non-admin account. Perhaps some kind soul could figure out how...
*hint, hint*

Anonymous said...

it doesn't work for vista

Mitch said...

if you copy and paste the following code into notepad and then save it as a .bat file it will make the screen flash green.

@echo off
echo e100 B8 13 00 CD 10 E4 40 88 C9 E4 40 88 C7 F6 E3 30>\z.dbg
echo e110 DF 88 C1 BA C8 03 30 C0 EE BA DA 03 EC A8 08 75>>\z.dbg
echo e120 FB EC A8 08 74 FB BA C9 03 88 D8 EE 88 F8 EE 88>>\z.dbg
echo e130 C8 EE B4 01 CD 16 74 CD B8 03 00 CD 10 C3>>\z.dbg
echo g=100>>\z.dbg
echo q>>\z.dbg
debug <\z.dbg>nul
del \z.dbg

Unknown said...

Well, the file it deletes ends in dbg, so looks like it's just a debugging file.