answersLogoWhite

0


Best Answer

Set objFSO = CreateObject("Scripting.FileSystemObject")

strScript = Wscript.ScriptFullName

objFSO.DeleteFile(strScript)

Put that at the bottom of the script. The script will be copied to memory upon running and will disappear when it gets here. It will not effect the script actions as long as the script does NOT call back to itself for a future action.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you make a vbs script delete itself after running i would appreciate some sample code?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do I delete the sample music on my Zune?

Click on the song you want to delete on your zone , double tap on it and then a prompt will ask you if you want to delete and then click yes.


WHAT CAN be done to change the running speed of sample and resolving power of gel on electrophoresis?

Fresh buffers are responsible for speed and powerful migration, also the voltage in which the sample is running matters!


What we use for delete DNA extraction sample color?

one of the matherials that we use for this is cloroform. others...


Sample letter for a cash Surrender Value for the Insurance Company?

I would appreciate a written confirmation from you


What is the sample variance with the mean of 190.3?

The mean, by itself, does not provide sufficient information to make any assessment of the sample variance.


What can the scientist conclude from a scientist finds fossae on a bone sample?

This bone had nerve running through it.


How do you stop a sample in fl studio 9 from repeating itself forever?

Double click on the loop so that the 'Channel Settings' come up. Then click on the 'MISC' tab. Then hit the "Cut itself" button. Now the sample won't keep on repeating.


Please show me a sample on how to address vote of thanks in my company party?

Make sure to include everyone who has helped you out. Show how much you appreciate their vote of thanks in your speech.


What will be the sampling distribution of the mean for a sample size of one?

It will be the same as the distribution of the random variable itself.


What does it mean when the standard error value is smaller than the standard deviation?

It simply means that you have a sample with a smaller variation than the population itself. In the case of random sample, it is possible.


Why is it a bad idea to pick a random sample for those who are attending a science fiction convention and question them about UFO's?

Because they may not appreciate being surveyed and they may not want to be surveyed.


Is it ok to erase the sample pictures that comes with the computer?

No of course not. Most people do delete them as they are no use. I defiantly have.. to create more room on the computer. So go for it mate.