Welcome! Log In Create A New Profile

Advanced

[wd12] Restart an application

Posted by Al 
Al
[wd12] Restart an application
September 20, 2008 12:30PM
Hello All

I have a settings process in an app that changes a lot of info and after running it I would like the app to close and then re-open.
There is generally an automatic option to restart after an application error but I can't see any command for it.

Is there a way that I can do this in the code ?


Regards
Al
Piet van Zanten
Re: [wd12] Restart an application
September 20, 2008 01:39PM
Hi Al,

I think this will do the trick:
ExeRun("MyProgram.exe", exeInactive, False)
EndProgram()
I don't know if it will work if your program is single instance.

Best regards,
Piet
Al
Re: [wd12] Restart an application
September 20, 2008 01:55PM
Hello Piet

Thanks for your quick reply and solution.

It worked perfectly as you set it out, and I made a small change to make it more independent

ExeRun(ExeInfo(exeName), exeInactive, False)
EndProgram()

Regards
Al
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: