Jump to content
Sign in to follow this  
Mark van Zon

Restart script

Recommended Posts

Mark van Zon

See subject

Share this post


Link to post
Share on other sites
markusss

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
markusss

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
upnorth

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  

×