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 / C++ / MFC
  4. How to get local path from a shared folder name?

How to get local path from a shared folder name?

Scheduled Pinned Locked Moved C / C++ / MFC
questionsysadminhelptutorial
2 Posts 2 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.
  • T Offline
    T Offline
    Tida
    wrote on last edited by
    #1

    Dear all, I created a subfolder1 under a shared folder1 which was shared to all users exp: \\server1\shared folder1\shared subfolder1\ then i need to shared this subfolder1 to a specific user, so i need the local path of this subfolder1 to implement network share how can i get local path from \\server1\shared folder1?? :( Thanks for your help. Tida

    A 1 Reply Last reply
    0
    • T Tida

      Dear all, I created a subfolder1 under a shared folder1 which was shared to all users exp: \\server1\shared folder1\shared subfolder1\ then i need to shared this subfolder1 to a specific user, so i need the local path of this subfolder1 to implement network share how can i get local path from \\server1\shared folder1?? :( Thanks for your help. Tida

      A Offline
      A Offline
      Alberto Giannetto
      wrote on last edited by
      #2

      You can use NetShareGetInfo If you're running on Windows NT/2K/XP you can use level 2 and a structure of type SHARE_INFO_2; on Windows 9x/ME level 50 and pass in a structure of type share_info_50. The two structures unfortunately are defined in two different header files and, if you're targeting win9x you'll also need to link to a different library (netapi32.lib for NT/2K/XP and svrapi.lib for 9x) Hope that helps, Alberto

      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