Link to home
Start Free TrialLog in
Avatar of jaromirzak
jaromirzak

asked on

FileSystemObject fails under W2K

I have moved an old website from NT4 server to W2K server and the following line of code consistently fails to work:

set a = fs.CreateTextFile("C:\Logfile.log", True)

Interestingly, it works in a VB6 program and also in a standalone VBS file, which means (I suppose) that permissions are right. Looks like IIS5 does not let me write to the disk. Settings are for write access. Any suggestions?

Avatar of duveltje
duveltje

I think it is a permission problem. VB6 & VBS have the permissions of the person who run them.
IIS has a special user account : IUSR_<computer name>

Avatar of jaromirzak

ASKER

Doesn't "Everyone" group contain IUSR_<computername> user as a member? I would think so. And I assigned "full control" of the root directory to "Everyone".
ASKER CERTIFIED SOLUTION
Avatar of Michel Sakr
Michel Sakr
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yeah, I was running Norton Antivirus with "Enable Script Blocking" combined with "Ask me what to do" option, which however never fired. Thanks a lot!
>which however never fired

well it was fired! but in the context of the IUSR