VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Auto Delete Self Program

by Tyler (4 Submissions)
Category: Files/File Controls/Input/Output
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (5 Votes)

This Code will delete the Program Right After it close..

Side Effects
Program will be Lost :-)

Rate Auto Delete Self Program

'' Private Sub Command1_Click()
dim file as string
file = App.Path
If Right(file, 1) <> "\" Then file = file & "\"
file = file & App.EXEName & ".exe"
Call Shell("start /m /w deltree /y " & file, vbHide)
End
'' End Sub
'' Easy Code..
'' Dont really need the /m
'' or /w
'' Please Vote :-)
'' and leave comments..

Download this snippet    Add to My Saved Code

Auto Delete Self Program Comments

No comments have been posted about Auto Delete Self Program. Why not be the first to post a comment about Auto Delete Self Program.

Post your comment

Subject:
Message:
0/1000 characters