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 :-)
'' 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..