Batch File Help

J003S3PH

Beta member
Messages
1
So is there any command I can use in a batch file so that it opens up a file, and if the user tries to close the program, it automatically opens back up?

so like

i have this

@echo off

start C:\Users\Suh\Desktop\taskkiller.bat


how can i make it so that if the person that opens the batch file, and then taskkiller.bat executes, and if that person tries to close taskkiller.bat, it automatically opens back up again?



Thanks in advance
 
You need to research loops, although I am unsure whether this is possible.

Looking up loops would be your best bet though.
 
i dont think it can be done, even a loop wont work if the .bat file is closed
 
I had this work before (I would get 500+ windows in a split second) but they patched it in Windows SP2.

O...k. I am back and it seems this buggedy bug still works.
I was able to stop it but only by locking my OS (win+L) and going back in..
Please only try this if you have a strong system:

@ECHO OFF
ECHO err...pwn3d
START pwn3d.bat
PAUSE

It works here. Haha.
It created 437 windows until I locked it.
 
yes, oddly enough if you open a batch file that then opens itself and that open one opens itself etc you get a massive recursive loop.

and end up with lots of windows open.

for the original poster.

There is nothing in a batch file that can check that a child process it has spawned is running.

a batch file is just a list of commands after all not an actual program.
 
Back
Top Bottom