Jump to content
Sign in to follow this  
Wb-FreeKill

How to restart script?

Recommended Posts

Wb-FreeKill

How do i restart my exe file as fast as possible..

Share this post


Link to post
Share on other sites
Wb-FreeKill

any ideas.. close exe and run again...

Share this post


Link to post
Share on other sites
MSLx Fanboy

Is the exe a script that's been compiled? Is so, wrap it in a a while 1 loop.

Else, if it is just a normal application do

While 1

RunWait(@ProgramFilesDir & "\someapp\someprogram.exe")

WEnd

which will loop again once the process that is launched is closed...


Writing AutoIt scripts since
_DateAdd("d", -2, _NowCalcDate())

Share this post


Link to post
Share on other sites
Wb-FreeKill

Is the exe a script that's been compiled?  Is so, wrap it in a a while 1 loop.

Else, if it is just a normal application do

While 1

RunWait(@ProgramFilesDir & "\someapp\someprogram.exe")

WEnd

which will loop again once the process that is launched is closed...

<{POST_SNAPBACK}>

its a compiled script, i can't put it in a while, the program is completly closiing??? so i guess i have to get a batch or commandline to execute it.. right?

Share this post


Link to post
Share on other sites
MHz

Run(@ScriptFullPath)
Exit

Share this post


Link to post
Share on other sites
jftuga

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
Sign in to follow this  

×