FileSystemObject delete fails

Results 1 to 3 of 3

Thread: FileSystemObject delete fails

  1. #1
    loren Guest

    Default FileSystemObject delete fails

    when i use the fso code for delete that i found on this site, i get the following error (i&#039;ve tried many variations)<BR>code:<BR>Dim objFSO<BR><BR>Set objFSO = Server.CreateObject("Scripting.FileSystemObject")< BR><BR>objFSO.DeleteFile "C:InetPubwwwroot emp.asp", True<BR><BR>Set objFSO = Nothing<BR><BR>Server object error &#039;ASP 0177 : 800a0046&#039; <BR>Server.CreateObject Failed <BR>/bla/bla/Edit.asp, line 172 <BR>The operation completed successfully. <BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: FileSystemObject delete fails

    Replace:<BR>Set objFSO = Server.CreateObject("Scripting.FileSystemObject")< BR><BR>With:<BR>Set objFSO = CreateObject("Scripting.fileSystemObject")<BR><BR>

  3. #3
    loren Guest

    Default RE: FileSystemObject delete fails

    that worked, thank you!<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