Hi!

While the code below works perfect in VB, it returns "Permission denied" when I run it through my web-server (page.asp).
Info:
- Windows XP
- Script enabled in the virtual folder
- No NTFS
- Even tried to put IUSR_..... in Administrators

I'm probably missing something basic. Have anyone got any ideas?


Regards.
Erik


Code:
Dim fso
Dim textstream
    
Set fso = CreateObject("Scripting.FileSystemObject")    
Set textstream = fso.OpenTextFile("C:\Temp\test.txt", 2)
textstream.Write "hello"