954,514 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to set file permissions with C#?

Hi,

I need to change the file permissions via code of an htaccess file used in WordPress.

I've looked far and wide but haven't come up with anything. It's obviously possible since FTP apps can do it. But how I keep asking myself!

Thanks in advance for any help,


MrGreggles

MrGreggles
Newbie Poster
2 posts since Jan 2009
Reputation Points: 10
Solved Threads: 0
 

If ou are used to unix like filepermissions they may be a bit hard to find. Check out the System.Security.Permissions.FileIOPermission class.

ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You