README.md

December 5, 2022 ยท View on GitHub

Delete Yourself

Description

let the program delete itself ;)

More Info

Submitted On
Bybmbsa
LevelBeginner
User Rating5.0 (50 globes from 10 users)
CompatibilityVB 4.0 (32-bit), VB 5.0
CategoryFiles/ File Controls/ Input/ Output
WorldVisual Basic
Archive File

API Declarations

NO APIs

Source 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