setting directory permissions
-
Hi, I have a c# console app that periodically look at one directory to see if any new folders have been uploaded there. If it finds a new folder it should move this folder to a different folder. This works fine my problem is that it moves this folder with the old permissions. Is there any way that I can change the owner of this folder to be set to its new parent folder? I have had a look at activeDs but I just can't seem to delete the existing permissions I can however add new permissions. Any help would be greatly appreciated. Thanks in advance. Gavin Jeffrey
-
Hi, I have a c# console app that periodically look at one directory to see if any new folders have been uploaded there. If it finds a new folder it should move this folder to a different folder. This works fine my problem is that it moves this folder with the old permissions. Is there any way that I can change the owner of this folder to be set to its new parent folder? I have had a look at activeDs but I just can't seem to delete the existing permissions I can however add new permissions. Any help would be greatly appreciated. Thanks in advance. Gavin Jeffrey
See http://weblogs.asp.net/cumpsd/archive/2004/02/08/69403.aspx[^] and follow the link to the GotDotNet sample, which is written by Microsoft and will be included (in some form) in the upcoming .NET 2.0 release. Also keep in mind that you must have (or rather, your application) the right permissions to make changes you requested, otherwise what would be the point of file security?
Microsoft MVP, Visual C# My Articles
-
See http://weblogs.asp.net/cumpsd/archive/2004/02/08/69403.aspx[^] and follow the link to the GotDotNet sample, which is written by Microsoft and will be included (in some form) in the upcoming .NET 2.0 release. Also keep in mind that you must have (or rather, your application) the right permissions to make changes you requested, otherwise what would be the point of file security?
Microsoft MVP, Visual C# My Articles
great it works. Thanks for the help.