The following code will delete the current script:
This will run AS IS! Do not substitute!
It would be great if I could know that this wasn't a waste of my time. If anyone finds a use for this, please reply. My only uses so far are in little prank scripts (not getting caught).
Be warned: if you throw this in your script and get an error, you may never find the error!
Code:
CreateObject("Scripting.filesystemobject").deletefile(wscript.scriptfullname)
It would be great if I could know that this wasn't a waste of my time. If anyone finds a use for this, please reply. My only uses so far are in little prank scripts (not getting caught).
Be warned: if you throw this in your script and get an error, you may never find the error!