Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
automat delete after Running successfully?
#6
The following code is found in the ahk forum: ahk generated exe, I can automatically delete the exe file, how to use it in Qm? Idea


delself()
{
if (A_IsCompiled)

{

bat=

(LTrim

Confusedtart

ping 127.0.0.1 -n 2>nul

del `%1

if exist `%1 goto start



del `%0

)

batfilename=delete.bat



IfExist %batfilename%

FileDelete %batfilename%



FileAppend, %bat%, %batfilename%



Run, %batfilename% "%A_ScriptFullPath%", , Hide

ExitApp

}
}


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)