Skip to content

Instantly share code, notes, and snippets.

@kissgyorgy
Last active December 10, 2015 00:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kissgyorgy/4350758 to your computer and use it in GitHub Desktop.
Save kissgyorgy/4350758 to your computer and use it in GitHub Desktop.
AutoIt: self restart
; Author UP_NORTH
Func RestartScript()
If @Compiled = 1 Then
Run( FileGetShortName(@ScriptFullPath))
Else
Run( FileGetShortName(@AutoItExe) & " " & FileGetShortName(@ScriptFullPath))
EndIf
Exit
EndFunc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment