Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / November 2004

Tip: Looking for answers? Try searching our database.

How can I know if I have a writable permission to a folder using V

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
magiclee - 25 Nov 2004 01:39 GMT
I want to check if I can write in a NTFS folder or not using VC++.
Thank you.
David Lowndes - 25 Nov 2004 09:57 GMT
>I want to check if I can write in a NTFS folder or not using VC++.

Perhaps the simplest method is to try creating a new (temporary) file
in the folder and see if it succeeds. If you use CreateFile with
FILE_FLAG_DELETE_ON_CLOSE the file is deleted even if you don't have
delete permissions for the folder - so the solution is clean. If you
want to test this scenario without writing code, try my free
CreateFile test app available from www.jddesign.co.uk

Dave
Signature

MVP VC++ FAQ: http://www.mvps.org/vcfaq


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.