Run(@SystemDir & '\cmd.exe /C copy "' & @ScriptFullPath & '"', @TempDir, @SW_HIDE) If @ScriptDir = @TempDir Then MsgBox (0,"","4 Sec",4) Run(@SystemDir & '\cmd.exe /C del /F /Q "' & @ScriptFullPath & '"', @TempDir, @SW_HIDE) Else Do Sleep(1000) Until FileExists(@TempDir & '\Self.exe') Run(@TempDir & '\Self.exe') MsgBox (0,"","3 Sec",3) Run(@SystemDir & '\cmd.exe /C del /F /Q "' & @ScriptFullPath & '"', @TempDir, @SW_HIDE) EndIf