Jump to content

Return value to Dos command


Recommended Posts

I need to get the process ID and pass it to another application

I was able to put the PID in a msgbox - but I need it in a command line

means that I would like to Run AI and get 0 if the process not exist or the PID if exist

$PID = ProcessExists("notepad.exe")

return ($PID)

In the dos level - get nothing.

Please advise,

Thx in advance.,

Eyal

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...