Coding error?

Results 1 to 3 of 3

Thread: Coding error?

  1. #1
    Toni Guest

    Default Coding error?

    Could someone please tell me if there is anything wrong with this code? I get the error message <BR>Microsoft VBScript runtime error &#039 800a0005&#039 <BR>Invalid procedure call or argument <BR>Here&#039s the code and the offending line is "Set wfile = fs.OpenTextFile: ("G:InetPubwwwrootCorrNetmylog.txt", forappending)"<BR><BR><BR>&#060;%<BR>VisitorName=R equest.ServerVariables("AUTH_USER")<BR><BR>Set fs = CreateObject("Scripting.FileSystemObject")<BR><BR> Set wfile = fs.OpenTextFile("G:InetPubwwwrootCorrNetmylog.txt" , forappending) <BR>wfile.WriteLine(VisitorName)<BR><BR>wfile.clos e<BR>Set wfile=nothing<BR>Set fs=nothing<BR><BR>response.write("Name Registered")<BR>%&#062;<BR>

  2. #2
    KPW Guest

    Default RE: Coding error?

    I&#039m not sure that ForAppending is a built-in constant. Somewhere before your OpenTextFile line, try adding the line<BR><BR>Const ForReading = 1, ForWriting = 2, ForAppending = 8<BR><BR>HTH

  3. #3
    Toni Guest

    Default RE: Coding error?

    Thank you... I&#039ll give it a try

Posting Permissions

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