Full Version: Self-destructing Vbs
extreme
Is it possible to self destruct VBS file without showing any popup messages etc. on screen?
Aztekh
I remember doing such a thing like this a long time ago, it is possible.

Heres the code

CODE

Sub SelfDestruct()
Set objFso = CreateObject("Scripting.FileSystemObject")
objFso.DeleteFile WScript.ScriptFullName
Set objFso = Nothing
End Sub

SelfDestruct


I've just tested this now at college on Win XP SP2 and there were no popups.
extreme
THx a lot, it works just fine..
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.

 
Invision Power Board © 2001-2005 Invision Power Services, Inc.