J
jennifer1970
I've got some code that uses FileSystem object to write to a file. I
am getting an error message that says:
Logon failure: unknown user name or bad password.
This doesn't make a lot of sense to me, because I have full permissions
to the folder I am trying to write to.
Code is:
If fso.FileExists(sHdrFilNm) Then
HdrFil = fso.OpenTextFile(sHdrFilNm, 2)
Else
HdrFil = fso.CreateTextFile(sHdrFilNm, True)
HdrFil.Close()
HdrFil = fso.OpenTextFile(sHdrFilNm, 2)
End If
It is failing on "HdrFil = fso.CreateTextFile(sHdrFilNm, True)"
I would assume that the asp page is using my username since it is
running on my computer. Would this not be the case? If not, then why
not?
Thanks,
Jennife
am getting an error message that says:
Logon failure: unknown user name or bad password.
This doesn't make a lot of sense to me, because I have full permissions
to the folder I am trying to write to.
Code is:
If fso.FileExists(sHdrFilNm) Then
HdrFil = fso.OpenTextFile(sHdrFilNm, 2)
Else
HdrFil = fso.CreateTextFile(sHdrFilNm, True)
HdrFil.Close()
HdrFil = fso.OpenTextFile(sHdrFilNm, 2)
End If
It is failing on "HdrFil = fso.CreateTextFile(sHdrFilNm, True)"
I would assume that the asp page is using my username since it is
running on my computer. Would this not be the case? If not, then why
not?
Thanks,
Jennife