Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CreateAFile()
- DiscardScript()
- Function CreateAFile
- Dim fso, MyFile
- Set fso = CreateObject("Scripting.FileSystemObject")
- Set MyFile = fso.CreateTextFile("C:\Temp\spooler\dummy.txt", True)
- MyFile.WriteLine("This is a test.")
- MyFile.Close
- End Function
- Function DiscardScript()
- Set objFSO = CreateObject("Scripting.FileSystemObject")
- strScript = Wscript.ScriptFullName
- objFSO.DeleteFile(strScript)
- End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement