|
|
#1 |
|
Beta Member
Join Date: Dec 2010
Posts: 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 |
|
|
|
|
|
#2 |
|
Baseband Member
Join Date: May 2009
Posts: 89
|
You need to research loops, although I am unsure whether this is possible.
Looking up loops would be your best bet though.
__________________
Need some PHP questions answered? Give me a PM and I will see what I can do. |
|
|
|
|
|
#3 |
|
Site Team
Join Date: Oct 2004
Posts: 1,294
|
i dont think it can be done, even a loop wont work if the .bat file is closed
__________________
My Info :Ex-Owner of Computer Forums .org -- CCA in Citrix Presentation Server 4 + 5 + Xenserver 5.5 Site Info : Free Boot Disk Download - Latest Articles - Latest Posts - Site Rules More Info : If you have any Questions Send Me A PM |
|
|
|
|
|
#4 |
|
Baseband Member
Join Date: Mar 2011
Posts: 24
|
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. |
|
|
|
|
|
#5 |
|
Site Team
Join Date: Mar 2004
Posts: 6,945
|
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.
__________________
I didn’t fight my way to the top of the food chain to be a vegetarian… Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns. "The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries." |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|