Sign in to follow this  
Followers 0
Wb-FreeKill

How to restart script?

6 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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

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

Run(@ScriptFullPath)
Exit

Share this post


Link to post
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
Sign in to follow this  
Followers 0