FileSystemObject - DeleteFile

Results 1 to 2 of 2

Thread: FileSystemObject - DeleteFile

  1. #1
    J-P Anquetil Guest

    Default FileSystemObject - DeleteFile

    Can anybody help. I am simply trying to delete a file on a local drive using<BR>the FileSystemObject but keep getting the following error,<BR><BR>Microsoft VBScript runtime error &#039 800a0046&#039 <BR>Permission denied <BR>/development/yellowpages/admin/campaigns.asp, line 26 <BR><BR>My Code is as follows,<BR>Set objFile =Server.CreateObject("Scripting.FileSystemObject") <BR>strImage = "c:inetpubdevelopmentyellowpagesads\" & objRec("ad_path")<BR> <BR>If objFile.FileExists(strImage) Then<BR> objFile.DeleteFile strImage<BR>End If<BR>Set objFile = Nothing

  2. #2
    Join Date
    Dec 1969

    Default RE: FileSystemObject - DeleteFile

    IUSR doesn&#039t have delete permissions on that directory.

Posting Permissions

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