Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get folder permission

Status
Not open for further replies.

iranor

Programmer
Jun 17, 2004
174
CA
At my job, I have to check a list of approximately 480 users ans folders to make sure every user has a folder, and every folder has a user. I decided to code something in c# to make my life easier...

I can't find how to check if a user has access on a certain folder. I'd like to do something like if(checkuseraccess(folder, username)){then folder and user exist} ...

Any help will be much appreciated.
 
look into the System.IO namespace. the Directory object has many static helper methods. you could also use the DirectoryInfo object which uses an instance. Both objects have the same functionality.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top