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 the absolute path of the virtual folder

How to get the absolute path of the virtual folder

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
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
    Sandeep Vaidya
    wrote on last edited by
    #1

    Hi, I need to get the absolute path for the given virtual folder path. Consider an example given below. Windows has a virtual folder "My Documents" placed in Desktop. So by using the path "C:\Documents and Settings\Administrator\Desktop\My Documents" can we get the Absolute ( Physical) path for the "My Documents"? In my case the physical path for the "My Documents" is "C:\Documents and Settings\Administrator\My Documents". Please send me the answer as soon as possible. Thanks in Advance vaidya

    D 1 Reply Last reply
    0
    • S Sandeep Vaidya

      Hi, I need to get the absolute path for the given virtual folder path. Consider an example given below. Windows has a virtual folder "My Documents" placed in Desktop. So by using the path "C:\Documents and Settings\Administrator\Desktop\My Documents" can we get the Absolute ( Physical) path for the "My Documents"? In my case the physical path for the "My Documents" is "C:\Documents and Settings\Administrator\My Documents". Please send me the answer as soon as possible. Thanks in Advance vaidya

      D Offline
      D Offline
      Dean Michaud
      wrote on last edited by
      #2

      Check out the help on SHGetSpecialFolderPath() and SHGetFolderPath(); I've not used these in a while, but they fit the bill. : Dean Michaud

      A 1 Reply Last reply
      0
      • D Dean Michaud

        Check out the help on SHGetSpecialFolderPath() and SHGetFolderPath(); I've not used these in a while, but they fit the bill. : Dean Michaud

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        For SHGetSpecialFolderPath() we need to give the CSIDL constants. I will not come to know which folder it is. We can even rename the My documents special folder in the desktop. So there is no way of knowing it is my documents or something else. Regarding the SHGetFolderPath(), it wont accept the virtual folder. It works only for the real folder.

        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