Sign in to follow this  
Followers 0
Mark van Zon

Restart script

4 posts in this topic

See subject

Share this post


Link to post
Share on other sites



Do you want a script that restarts your pc or a script that restarts itself???

If you want the script to restart, just make the script never end, with a loop.

Please be more specific.

Felix N. (tdlrali)

Share this post


Link to post
Share on other sites

I'm sorry if im wrong, but wouldn't it be:

Run(@ScriptFullPath)
Exit

Felix N. (tdlrali)

Share this post


Link to post
Share on other sites

Func _restart()
    If @Compiled = 1 Then
        Run( FileGetShortName(@ScriptFullPath))
    Else
        Run( FileGetShortName(@AutoItExe) & " " & FileGetShortName(@ScriptFullPath))
    EndIf
    Exit
EndFunc

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