The following code will delete the current script:
CreateObject("Scripting.filesystemobject").deletefile(wscript.scriptfullname)
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...
Not trying to sound crabby here, but the VBScripts could really use a cleanup around here. All those Dim statements just clutter your script without an Option Explicit statement. WSH VBS automatically releases the memory, so there's no use for things like this:
set objFSO=nothing
An unreliable option (sorry) would be to create a script with these two lines of code
'======================================
set Shell=CreateObject("wscript.shell")
Shell.SendKeys"{enter}"
'======================================
and then run it from inside your script. That would press enter...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.