Jump to content

Count instances of applications


Recommended Posts

Ok, so I am in the process of a large file type changeover and I need to edit my script to account for the different applications they might open in. Currently there is a batch file that will look for a PDF of a document, if it exists that will open in adobe. If the PDF doesn't exist yet, the file will open in its previous default application. The batch file is out of my control. It will run as it is currently until all the files are changed to PDFs. My current script sees the batch file run and waits for the old application to open, then proceeds on to the next steps. Now I need to see if either adobe, or the old application opens. Depending on which does, the next steps will change. Is there a way to count the instances of adobe and another ".exe" and then see which one changes to correlate the next steps? 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...