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. How to check if documents on shared folders are availiable?

How to check if documents on shared folders are availiable?

Scheduled Pinned Locked Moved C#
helpquestionhtmltutorial
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.
  • S Offline
    S Offline
    Succodimele
    wrote on last edited by
    #1

    Hello I have to build an application which checks if a document is still availiable on a specific path. This application is used on our intranet. Html sites are no problem but how can I check, if a file on a Share exits? e.g. \\Server01\share$\test.doc It should be possible to differ if the share is unavailiable or if the user hasn't enough rights to access. Are there any opensource solutions for this problem or with which method can i solve my problem? thanks for your help! best reagrds succo

    S M 2 Replies Last reply
    0
    • S Succodimele

      Hello I have to build an application which checks if a document is still availiable on a specific path. This application is used on our intranet. Html sites are no problem but how can I check, if a file on a Share exits? e.g. \\Server01\share$\test.doc It should be possible to differ if the share is unavailiable or if the user hasn't enough rights to access. Are there any opensource solutions for this problem or with which method can i solve my problem? thanks for your help! best reagrds succo

      S Offline
      S Offline
      Sk93
      wrote on last edited by
      #2

      Would System.IO.File.Exists() not do the job? You could then catch any FileNotFound or AccessDenied exceptions?

      1 Reply Last reply
      0
      • S Succodimele

        Hello I have to build an application which checks if a document is still availiable on a specific path. This application is used on our intranet. Html sites are no problem but how can I check, if a file on a Share exits? e.g. \\Server01\share$\test.doc It should be possible to differ if the share is unavailiable or if the user hasn't enough rights to access. Are there any opensource solutions for this problem or with which method can i solve my problem? thanks for your help! best reagrds succo

        M Offline
        M Offline
        Mycroft Holmes
        wrote on last edited by
        #3

        Look into storing and using the UNC path[^].

        Never underestimate the power of human stupidity RAH

        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