Topic: Exe file running

How to implement a condition like this

If notapad.exe is running then
Begin
         My script
End...
And if notepad.exe not running then system check condition while system got notepad.exe running true then execute My script... is this possible in mvd

Re: Exe file running

How to find any exe runnung or not

Re: Exe file running

If FindWindow('Notepad',nil) then ShowMessage('Notepad is running') else ShowMessage('Notepad is not running');

Re: Exe file running

How to implement a loop on this script ... i mean system check condition if result is yes then break loop

Re: Exe file running

See if attached is what you are looking for.

Post's attachments

Attachment icon Prog Check.zip 334.91 kb, 307 downloads since 2020-11-19 

Re: Exe file running

Not working on sqlservr.exe

Post's attachments

Attachment icon untitled.JPG 53.09 kb, 111 downloads since 2020-11-20 

Re: Exe file running

blackpearl8534,
What you are asking for is another story. You are looking for a way to test for a running service, not an open window. I've never had a need for this so I do not have an answer. I would need to so some research on this or maybe Dimitry or someone else could lend a hand here.

Re: Exe file running

You are right... its a service.. but every service run an exe file.. i think

Re: Exe file running

Where is Dmitry... i have not seen him on forum many day

Re: Exe file running

I am a little concerned about that too. He has not participated on the forum for quite some time. Maybe it has to do with the pandemic or maybe he is working on a major release and does not have time to be on the forum. I don't know and wish he would communicate something on here to relieve some concerns as to the future of this product. I just hope he is alright.

11 (edited by vovka3003 2020-11-22 20:21:59)

Re: Exe file running

..he is working.. and does not have time to be on the forum..

Re: Exe file running

blackpearl8534 wrote:

Not working on sqlservr.exe


if FindWindow(nil, APP_NAME);