Introduction: How to Make a Program That Will Open and Close Itself and Never Stop.

Picture of How to Make a Program That Will Open and Close Itself and Never Stop.

This will not stop unless you shut-down your computer. (you need file extensions on)
Besides pressing "FN + Break" the only way to stop this is to shutdown!!!

Step 1: Type Stuff in This Step!

Picture of Type Stuff in This Step!

Right click on the .bat file and click "Edit" then

In the .bat file Type this: start (file name here).bat
exit (file name here).bat

Step 2: OPEN AT YOUR OWN RISK!!!

Picture of OPEN AT YOUR OWN RISK!!!

uh oh........

Comments

stev0withazer0 (author)2016-05-12

What if you don't want the program to close, but you still want infinite program files opened? Coudn't you just type:

:loop

start NAME OF FILE.bat

goto loop

Personally, I wouldn't want the program to close immediately after opening. I'd rather have a bunch of files repeatedly opening themselves so that attempting to close any of the programs would be like playing cmd whack-a-mole.

BlackHoleMan (author)2010-02-08

 This will not work, as when all the code finishes the program will close.
You would have to insert the following code:
:whateveryouwant
start MarioRemix.bat
exit MarioRemix.bat
got whateveryouwant

This will cause the code to run infinitely, therefore allowing you to achieve the required result.

elkalpin (author)BlackHoleMan2010-02-08

Well I tried this and it worked because the "start MarioRemix.bat" is before the "exit MarioRemix.bat". so it starts the next on before it closes. 

About This Instructable

8,230views

3favorites

License:

More by elkalpin:How to make a bomb in PHUNHow to make page markers with lable, and a reusible dispenserHow to make The best game ever!
Add instructable to: