Search Tools Links Login

Delete Yourself


Visual Basic 6, or VB Classic

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

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 93 times

Categories

Visual Basic 6

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.