Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File Permission On Windows

Status
Not open for further replies.

cginewbie

Programmer
Jan 20, 2002
24
US
Hi,
my little code is working correctly on Unix but when it comes to Windows IIS, it does not work.

I can read from a file in IIS fine, but when I try to write the something back, it says Permission denied. I know it is not about permissions.

I tried both the \ and / and both gave the same error.

What do we do to write stuff in Windows IIS?

And what should be the correct path
E:\myhost\myfile.txt

or E:/myhost/myfile.txt?

thanks for the help
 
Firstly the correct path can be either:

E:\myhost\myfile.txt

or /myhost/myfile.txt (if the file is on the C: Drive)

Secondly, your problem could still be permissions. Check whether the file you are writing to has ReadOnly or Archive checked.

HTH,

Barbie.


Leader of Birmingham Perl Mongers
 
thanks for the prompt reply.
However, the file i am trying to write to is not ReadOnly or Archived. I cannot even write new files.

Do you have any code that works on windows?

thanks
 
Hi,

Make sure IUSR_SERVERNAME, where SERVERNAME is the name of your windows box, has permission to use the directory. The IUSR_* user is internet guest account which corresponds to guest user or nobody user under unix, linux.
Leland F. Jackson, CPA
Software - Master (TM)
Nothing Runs Like the Fox
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top