Hi All, I am getting "Microsoft VBScript runtime (0x800A0046) Permission denied" error at Code: set file = fs.OpenTextFile(fileName, openMethod, true) Code (markup): I have given permission IUSR_<computername> user to read/modify the directory by adding it to the security tab. I have even given permission to Everyone but still I am getting the same error. I would appreciate any help in this regard. Thanks in advance! Best Regards, Inderpal Singh
What open method are you using? The options are ForReading and ForAppending. You also might want to verify the file has received the correct IUSR permissions from the directory. HTH -Danae
Good advice danae, i'm thinking your second suggestion is probably hitting the nail on the head. Inderpal, if you change your permissions on a directory in the security tab, you will also need to click the "advanced" button and choose the option to "allow permissions from this object to propegate to objects within this directory" or some other similarly worded microsoft-ese jargon. Sometimes just changing the permissions of a directory will leave the current file permissions intact on files contained within the folder. thats my .02 Vectorgraphx
Thanks guys for your help but I am still struggling with the problem. I have checked all user permissions are there and I am using ForAppending method to append in the exsiting file and if it's not there it should create it as I am passing true as a parameter. Is there anything I can do to make it work? Best Regards, Inderpal Singh
if you're still having issues you might post more code - it might be elsewhere in your script. sounds like you've covered all the generic solutions. regarding file/directory permissions.