+ Reply to Thread
Results 1 to 2 of 2

Thread: Destroy vbs after used

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    34

    Destroy vbs after used

    Hi , i`d like to add a function to delete the vbs file after being used .

  2. #2
    Here is the simple function :
    Code:
     Set objFSO = CreateObject( "Scripting.FileSystemObject" )
     objFSO.DeleteFile WScript.ScriptFullName
     WScript.Quit

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts