Click here to Skip to main content
15,892,768 members
Home / Discussions / C#
   

C#

 
GeneralRe: Changing Folder Permissions C# Pin
Mazdak15-Jan-04 22:13
Mazdak15-Jan-04 22:13 
GeneralRe: Changing Folder Permissions C# Pin
Heath Stewart16-Jan-04 4:08
protectorHeath Stewart16-Jan-04 4:08 
There's a couple of articles on this here on code project. A quick search revealed:
  1. Adding File Access Permissions using DirectoryServices[^]
  2. NT Security Classes for .NET[^]
You could search for additional articles, as well as comments in this forum because it has been discussed several times before.

You probably shouldn't modify the ACL of the All Users directory, though. Users should not be able to write files to this directory. If you need the application to save files in a place where other users of the machine can access them, you should consider installing your program into C:\Program Files (where applications are supposed to go anyway) and use a folder within that. By default, most users can write to those directories. All Users is more for things like Start menu shortcuts available to everyone. Occassionally, net admins will put a README file in the Documents folder or something that user can't delete, but this is pretty rare these days with modern networks.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Changing Folder Permissions C# Pin
Nicholas Cardi17-Jan-04 4:40
Nicholas Cardi17-Jan-04 4:40 
GeneralRe: Changing Folder Permissions C# Pin
Heath Stewart17-Jan-04 8:44
protectorHeath Stewart17-Jan-04 8:44 
QuestionHow to convert a float to a 4 byte array. Pin
HAHAHA_NEXT15-Jan-04 10:56
HAHAHA_NEXT15-Jan-04 10:56 
AnswerRe: How to convert a float to a 4 byte array. Pin
leppie15-Jan-04 11:07
leppie15-Jan-04 11:07 
GeneralRe: How to convert a float to a 4 byte array. Pin
HAHAHA_NEXT16-Jan-04 10:12
HAHAHA_NEXT16-Jan-04 10:12 
GeneralSqlParameter.IsNullable Pin
Shaun Becker15-Jan-04 10:20
Shaun Becker15-Jan-04 10:20 
GeneralRe: SqlParameter.IsNullable Pin
Shaun Becker15-Jan-04 10:25
Shaun Becker15-Jan-04 10:25 
GeneralWeb Service Problem and Session Pin
Mazdak15-Jan-04 10:19
Mazdak15-Jan-04 10:19 
GeneralRe: Web Service Problem and Session Pin
Heath Stewart16-Jan-04 3:56
protectorHeath Stewart16-Jan-04 3:56 
GeneralRe: Web Service Problem and Session Pin
Mazdak16-Jan-04 4:19
Mazdak16-Jan-04 4:19 
GeneralRe: Web Service Problem and Session Pin
Heath Stewart16-Jan-04 4:56
protectorHeath Stewart16-Jan-04 4:56 
GeneralRe: Web Service Problem and Session Pin
Mazdak16-Jan-04 5:26
Mazdak16-Jan-04 5:26 
GeneralRe: Web Service Problem and Session Pin
Mazdak16-Jan-04 6:57
Mazdak16-Jan-04 6:57 
GeneralRe: Web Service Problem and Session Pin
Heath Stewart16-Jan-04 6:59
protectorHeath Stewart16-Jan-04 6:59 
Generalhttp remote file timestamp Pin
elraton15-Jan-04 9:29
elraton15-Jan-04 9:29 
GeneralRe: http remote file timestamp Pin
Heath Stewart15-Jan-04 9:55
protectorHeath Stewart15-Jan-04 9:55 
QuestionDoc / View i C# ? Pin
anderslundsgard15-Jan-04 7:25
anderslundsgard15-Jan-04 7:25 
AnswerRe: Doc / View i C# ? Pin
Heath Stewart15-Jan-04 9:53
protectorHeath Stewart15-Jan-04 9:53 
AnswerRe: Doc / View i C# ? Pin
Eric Gunnerson (msft)15-Jan-04 13:10
Eric Gunnerson (msft)15-Jan-04 13:10 
GeneralMetafile too small Pin
Torsch15-Jan-04 6:31
Torsch15-Jan-04 6:31 
GeneralParameters & Threading Pin
Anonymous15-Jan-04 4:56
Anonymous15-Jan-04 4:56 
GeneralRe: Parameters & Threading Pin
Heath Stewart15-Jan-04 6:49
protectorHeath Stewart15-Jan-04 6:49 
Generalwindows service question Pin
Visuall15-Jan-04 4:55
Visuall15-Jan-04 4:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.