help?.. I'm having trouble Overwriting with Cr

Results 1 to 2 of 2

Thread: help?.. I'm having trouble Overwriting with Cr

  1. #1
    Join Date
    Dec 1969

    Default help?.. I'm having trouble Overwriting with Cr

    I am trying to creating a new text file (replacing the old one) 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 I 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 I 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>... I 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

  2. #2
    Mark Turkel Guest

    Default RE: help?.. I'm having trouble Overwriting wit

    I think you&#039re getting permission denied because:<BR>1. File is set to read-only<BR>2. The file is currently open for read/write by another user<BR>3. Rights, permissions, etc.<BR><BR>My guess is that you cannot rename it either...<BR><BR>Hope I&#039ve pointed you in the right direction,<BR>Mark Turkel,<BR>Software Architect<BR>561-350-5190

Posting Permissions

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