Jump to content

How to restart script?


Recommended Posts

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())
Link to comment
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?
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...