how to self delete a vbscript file

The solution for “how to self delete a vbscript file” can be found here. The following code will assist you in solving the problem.

discardScript()
Function discardScript()
Set objFSO = CreateObject(“Scripting.FileSystemObject”)
strScript = Wscript.ScriptFullName
objFSO.DeleteFile(strScript)
End Function

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts