"CreatTextFile" /Overwrite-Blues

Results 1 to 2 of 2

Thread: "CreatTextFile" /Overwrite-Blues

  1. #1
    Seeker'O'Wisdom Guest

    Default "CreatTextFile" /Overwrite-Blues

    we are trying to creating a text file with ...<BR><BR>Set objWriteFile = objFSO.CreateTextFile("c:inetpubwwwrootfolder1 extFile.txt", True)<BR><BR>and writing to it with...<BR><BR>objWriteFile.Write "text-goes-here"<BR><BR>when we try to OVERWRITE the existing file (of the same file-name) successive times... it does not. The first time it CREATEs the file just fine... however, even when we use the word "TRUE" to implicitly declare the (already default=true) OVERWRITE status value of the CREATE method... the original text file is not being OVERWRITEN. <BR><BR>if I try to first delete the existing file, before creating the new file, with ...<BR><BR>objFSO.DeleteFile("c:inetpubwwwrootfold er1 extFile.txt")<BR><BR>... we get the message..<BR><BR>Error Type: Microsoft VBScript runtime (0x800A0046) Permission denied<BR><BR><BR>We are using ASP 3 / IIS 5.<BR><BR>If you (OR ANYBODY) knows how to do this correctly, please email us at keith@outreachmarketing.com

  2. #2
    Join Date
    Dec 1969


    Naughty, naughty, naughty crossposter!<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