• Log in or sign up for an account here: https://www.sythe.org/login

.batch

mopar-user

Guru

Banned
Joined
Jul 23, 2007
Sythe Gold
0
Messages
1,188
Right now I'm making a file that while running, it closes the internet page whenever one is currently running or is tried to be open. This is an issue because I need another .bat file to be run at the same time to keep the first one open and the first one keeps the second open. The thing I can't get is that when one of the .bats are closed, I can't figure out the code to find out when it closes. Any help?
 
Maybe you should read the rules, because you're not allowed to ask about making virus. :\ So unless you can somehow prove (via PM) to me this is not a basis for a virus, I will be closing this thread.

EDIT: Un-closed due to PM.
 
Can't you make the one open the other?
like C:\wherever whatever

Perhaps you should re-read what he is asking for...
He is curious to know if there is a code or something in batch that can detect if the other bat file is not running... Having so, then re-opens it.

I'm going to do a little bit of research on this, as i have nothing much else to do, so i'll get back to you. :)
 
Batch "programming" if you will is far too simplistic and feature-lacking for what you're asking.

Your options are pretty much either making the batch file never close or if that is not an option then have it open itself again before closing or open a different batch file before closing.
 
Well could you provide the code for either of those ideas? I have little knowledge on batch.
 
Batch "programming" if you will is far too simplistic and feature-lacking for what you're asking.

Your options are pretty much either making the batch file never close or if that is not an option then have it open itself again before closing or open a different batch file before closing.

that's his problem... he has check the closing event but he doesn't know how, that's what he asked for...

btw, what is this for? I mean, does it have to be a batch "program"?
 
You'll have to post the code of your batch file then.
 
ok I will when I can get it on a flash drive. Will be posted tomorrow more than likely.
 
Runescape Gamblingrunescape gambling
Back
Top