?
Solved

Cheking folder or file permissions

Posted on 2011-03-03
3
Medium Priority
?
401 Views
Last Modified: 2012-05-11
In my C# winform app. what is the proper and quicker way to check a folder or file write/read  permissions before loading the app.?
0
Comment
Question by:yaron89
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 42

Accepted Solution

by:
sedgwick earned 2000 total points
ID: 35027256
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 35027502
Checking existing permissions will validate what should be. If you want to check what is, then try to read from and write to, i.e. try exactly what your application will be doing.

The difference between should and is is exactly what makes people come to E-E with the question "I have correct permissions, but for some reason my application does not work".
0
 

Author Closing Comment

by:yaron89
ID: 35083619
Thank you
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Among others, I monitor the Windows Installer zone and Installer zone. I find that many of the questions could be answered much more quickly if a Windows Installer verbose log were submitted with the question.   However, I do not always have t…
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question