Deleting Files in ASP

Results 1 to 2 of 2

Thread: Deleting Files in ASP

  1. #1
    Join Date
    Dec 1969

    Default Deleting Files in ASP

    If I know the file name and location on the server, how do I delete it in ASP?

  2. #2
    Join Date
    Dec 1969

    Default filesystemobject...

    &#060;%<BR>dim fso<BR>set fso=server.createobject("scripting.filesystemobjec t")<BR>dim filetodelete<BR>filetodelete="C:Inetpubwwwrootmyfi le.asp"<BR>fso.deletefile(filetodelete)<BR>set fso=nothing<BR>%&#062;

Posting Permissions

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