Delete a text file from the directory

Results 1 to 2 of 2

Thread: Delete a text file from the directory

  1. #1
    Join Date
    Dec 1969
    Posts
    39

    Default Delete a text file from the directory

    How to delete the text file after it is created in asp using createobject

  2. #2
    Join Date
    Dec 1969
    Posts
    1,019

    Default RE: Delete a text file from the directory

    set fs=Server.CreateObject("Scripting.FileSystemObject ")<BR>fs.DeleteFile "c:/mypath/myfile.txt",Force<BR>set fs=nothing<BR><BR>Enjoy

Posting Permissions

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