How to set file permissions with C#?

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2009
Posts: 2
Reputation: MrGreggles is an unknown quantity at this point 
Solved Threads: 0
MrGreggles MrGreggles is offline Offline
Newbie Poster

How to set file permissions with C#?

 
0
  #1
Jan 17th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 1,920
Reputation: ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of 
Solved Threads: 274
ddanbe's Avatar
ddanbe ddanbe is online now Online
Posting Virtuoso

Re: How to set file permissions with C#?

 
0
  #2
Jan 17th, 2009
If ou are used to unix like filepermissions they may be a bit hard to find. Check out the System.Security.Permissions.FileIOPermission class.
Today is a gift, that's why it is called "The Present".
Make love, no war. Cave ab homine unius libri.
Danny
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC