Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
U

User Rock

@User Rock
About
Posts
3
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Optimistic developer, pessimistic tester.
    U User Rock

    Optimistic Developer: There is no I in TEAM Pessimistic Tester: We can’t spell BUGS without U

    modified on Wednesday, June 8, 2011 1:55 PM

    The Soapbox collaboration

  • SQL database to C# classes genaration using graphical SQLMetal - SQLMetalBuilder [modified]
    U User Rock

    Find a nice tool for generating LINQ-TO-SQL classes using tool available at http://sourceforge.net/projects/sqlmetalbuilder/[^] License: GNU General Public License (GPL)

    modified on Tuesday, June 7, 2011 11:50 AM

    Free Tools csharp database linq lounge

  • Checking folder read write access C#
    U User Rock

    Hi, You can try following code block to check if the directory is having Write Access. It checks the FileSystemAccessRule. string directoryPath = "C:\\XYZ"; //folderBrowserDialog.SelectedPath; bool isWriteAccess = false; try { AuthorizationRuleCollection collection = Directory.GetAccessControl(directoryPath).GetAccessRules(true, true, typeof(System.Security.Principal.NTAccount)); foreach (FileSystemAccessRule rule in collection) { if (rule.AccessControlType == AccessControlType.Allow) { isWriteAccess = true; break; } } } catch (UnauthorizedAccessException ex) { isWriteAccess = false; } catch (Exception ex) { isWriteAccess = false; } if (!isWriteAccess) { //handle notifications }

    C# csharp visual-studio
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups