How to get the absolute path of the virtual folder
-
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
-
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
Check out the help on SHGetSpecialFolderPath() and SHGetFolderPath(); I've not used these in a while, but they fit the bill. : 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
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.