You can do whatever you like to a script file from within the running instance. To "self destruct" at the normal exit point,
createobject("scripting.filesystemobject").deletefile wscript.scriptfullname
--
Michael Harris
I assume its not possible and I can't find anywhere that says it is...
but is it possible to write a vbs file that self deletes, or self modifies
itself ?
I would use such a file to quiz the user to get info to write an ini file
and then delete itself - or amend itself to not do it again.
I appreciate one could use an If Exist type script to always check for the
ini and create if it doesn't exist, but I feel this is sloppy when all
subsequent runs would not need to check.
Tom