Jump to content

Find Process Owner


 Share

Recommended Posts

Hi,

I've build an autoit script that run when two softwares are runnning at the same time by the same user ( we use W2K3 with anonymous user) but it seems that every anonymous's process are return when using the ProcessExist function. So, there 'is a problem when one user launch the first app then a second user launch the other.

Is there a way to check if "ProcessExist" only for this user, except by running a little cmd command ...

Thanks

Yann

Link to comment
Share on other sites

not tested

$user = @UserName

While 1
    If ProcessExists("my-process.exe") Then
        If @UserName <> $user Then MsgBox(64," Process found", "the user is different   ")
    EndIf
    Sleep(200)
WEnd

8)

Edited by Valuater

NEWHeader1.png

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