
April 7th, 2003, 11:55 PM
|
|
Junior Member
|
|
Join Date: Apr 2003
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
itself deletion!!!
Hi,
How can a file delete itself??? Is it possible?...
A friend helped me by shell function:
'''''''''''''
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
' Dont really need the /m
' or /w
'''''''''''
but it didn't work on 2K and XP OS. maybr the problrm with start.
Any help?
Best Regards,
|