Delete Yourself
![Visual Basic 6, or VB Classic Visual Basic 6, or VB Classic](https://www.fortypoundhead.com//assets/img/icons/v7/vb6.png)
let the program delete itself ;)
Original Author: Badr Almodarra
API Declarations
NO APIs
Code
Open App.Path & IIf(Right(App.Path, 1) <> "", "Del.bat", "Del.bat") For Output As #1
Print #1, "@Echo off"
Print #1, ":S"
Print #1, "Del " & App.EXEName & ".exe"
Print #1, "If Exist " & App.EXEName & ".exe" & " goto S"
Print #1, "Del Del.bat"
Close #1
Shell "Del.bat", vbHide
Unload Me
Loading Comments ...
Comments
No comments have been added for this post.
You must be logged in to make a comment.