Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2005
    Posts
    116

    Unanswered: Check if Application Already Running ?

    H iGuys,

    How do i write a batch file (.bat) to check if "Test.exe" is running?

    If its running , then dont do anything. If its not running, then launch..

    I can launch using this statement
    START C:\Debug\Test.exe

    But i dont know how to check whether its running or not

    got some idea but not sure how to work around with this statement

    TASKLIST /FI "IMAGENAME EQ Test.exe"

    This statement checks whether it exists or not..

    but it does not return true/false if it exists..returns something else..

    So not sure how to make it work


    Thank you very much
    Last edited by a1jit; 09-28-05 at 05:03.

  2. #2
    Join Date
    Aug 2004
    Location
    San Antonio, TX
    Posts
    84
    What has this got to do with PHP? I think you got the wrong forum bud.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •