delete file

Results 1 to 2 of 2

Thread: delete file

  1. #1
    hopi Guest

    Default delete file

    Hi...<BR>I used the file scripting object to create a temp file,(CreateObject), write to it....then I want to delete the there any code to be used?<BR>thanks...<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: delete file

    Hi, <BR><BR> You could use DeleteFile method of FileSystemObject to the file you have created.<BR>Here is the snippet<BR><BR>Set objFile = CreateObject("Scripting.FileSystemObject")<BR>objF ile.deleteFile("C: emp emp.txt")<BR>Set objFile = Nothing<BR><BR>Hope this helps<BR>Shyam<BR><BR><BR>

Posting Permissions

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