Adblock breaks this site

.batch

Discussion in 'Programming General' started by mopar-user, Mar 17, 2009.

  1. mopar-user

    mopar-user Guru
    Banned

    Joined:
    Jul 23, 2007
    Posts:
    1,188
    Referrals:
    1
    Sythe Gold:
    0
    .batch

    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?
     
  2. hampe-92

    hampe-92 Forum Addict

    Joined:
    Jul 10, 2008
    Posts:
    328
    Referrals:
    0
    Sythe Gold:
    0
    .batch

    why does it ever have to close?
     
  3. mopar-user

    mopar-user Guru
    Banned

    Joined:
    Jul 23, 2007
    Posts:
    1,188
    Referrals:
    1
    Sythe Gold:
    0
    .batch

    If they person closes the batch file......
     
  4. Darthatron

    Darthatron Massive Troll
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    May 22, 2006
    Posts:
    1,612
    Referrals:
    3
    Sythe Gold:
    0
    .batch

    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.
     
  5. mopar-user

    mopar-user Guru
    Banned

    Joined:
    Jul 23, 2007
    Posts:
    1,188
    Referrals:
    1
    Sythe Gold:
    0
    .batch

    thanks
     
  6. Macroman

    Macroman Hero
    Do Not Trade

    Joined:
    Jan 21, 2007
    Posts:
    6,919
    Referrals:
    9
    Sythe Gold:
    12
    .batch

    Can't you make the one open the other?
    like C:\wherever whatever
     
  7. demonavenger

    demonavenger Forum Addict
    $5 USD Donor

    Joined:
    Feb 25, 2007
    Posts:
    536
    Referrals:
    0
    Sythe Gold:
    0
    .batch

    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. :)
     
  8. Nullware

    Nullware Guru

    Joined:
    Jan 30, 2007
    Posts:
    1,761
    Referrals:
    4
    Sythe Gold:
    0
    .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.
     
  9. mopar-user

    mopar-user Guru
    Banned

    Joined:
    Jul 23, 2007
    Posts:
    1,188
    Referrals:
    1
    Sythe Gold:
    0
    .batch

    Well could you provide the code for either of those ideas? I have little knowledge on batch.
     
  10. hampe-92

    hampe-92 Forum Addict

    Joined:
    Jul 10, 2008
    Posts:
    328
    Referrals:
    0
    Sythe Gold:
    0
    .batch

    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"?
     
  11. Nullware

    Nullware Guru

    Joined:
    Jan 30, 2007
    Posts:
    1,761
    Referrals:
    4
    Sythe Gold:
    0
    .batch

    You'll have to post the code of your batch file then.
     
  12. mopar-user

    mopar-user Guru
    Banned

    Joined:
    Jul 23, 2007
    Posts:
    1,188
    Referrals:
    1
    Sythe Gold:
    0
    .batch

    ok I will when I can get it on a flash drive. Will be posted tomorrow more than likely.
     
< Final Project | save file >


 
 
Adblock breaks this site