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
  1. Home
  2. General Programming
  3. C#
  4. Shared Folder Information

Shared Folder Information

Scheduled Pinned Locked Moved C#
questionsysadmin
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Imtiaz Murtaza
    wrote on last edited by
    #1

    Dear Friends, There is a shared folder in one of the computers of my network. I want to programaticaly determine whether i've write permission in that folder or not. How can i do so ?

    Imtiaz

    N J 2 Replies Last reply
    0
    • I Imtiaz Murtaza

      Dear Friends, There is a shared folder in one of the computers of my network. I want to programaticaly determine whether i've write permission in that folder or not. How can i do so ?

      Imtiaz

      N Offline
      N Offline
      Noharyiasa
      wrote on last edited by
      #2

      What do you mean by giving permission in the folder? Noha.Y

      1 Reply Last reply
      0
      • I Imtiaz Murtaza

        Dear Friends, There is a shared folder in one of the computers of my network. I want to programaticaly determine whether i've write permission in that folder or not. How can i do so ?

        Imtiaz

        J Offline
        J Offline
        Jimmanuel
        wrote on last edited by
        #3

        you could try

        FileInfo info = new FileInfo(pathToDirectory);
        if (info.IsReadOnly)
        {
        // . . .
        }

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

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