Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I retrieve the path to my documents folder
Message
De
06/06/2003 14:54:34
 
 
À
06/06/2003 14:38:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00797361
Message ID:
00797414
Vues:
58
Gunnar,

Thanks.

Re:
>if you are still interested in the 'SHGetFolderPath' version i can post some of my class.

Yes that would be helpful. Also, if you have a copy of the .h file that would be helpful as well.

I don't know re: the compatibility with win98.




>i appologize. you are correct. the function 'SHGetFolderPath' is not listed in the msdn help (now i am wondering where i got it from?)
>
>i any case, i aggre with you: steve's solution is much nicer (and proberbly faster too). i am wondering if this soltution is compatible with all windows versions starting Win98 and up?
>
>if you are still interested in the 'SHGetFolderPath' version i can post some of my class.
>
>>Steve,
>>
>>Thanks. This is what I need!
>>
>>Gunnar, thanks too. This seems a little simpler than using the Windows API directly. Also I couldn't find a reference to the shlfolder.h file when I did a search in MSDN.
>>
>>
>>
>>>FYI, here is one of my form methods where a number is passed.
>>>
PARAMETERS nDirNum
>>>o = CreateObject('wscript.shell')
>>>return (o.SpecialFolders(nDirNum))
>>>
>>>******************examples of directory numbers
>>>*!*	         1- C:\Documents and Settings\All Users\Start Menu
>>>*!*	         2- C:\Documents and Settings\All Users\Start Menu\Programs
>>>*!*	         3- C:\Documents and Settings\All Users\Start Menu\Programs\Startup
>>>*!*	         4- C:\Documents and Settings\stysinger\Desktop
>>>*!*	         5- C:\Documents and Settings\stysinger\Application Data
>>>*!*	         6- C:\Documents and Settings\stysinger\PrintHood
>>>*!*	         7- C:\Documents and Settings\stysinger\Templates
>>>*!*	         8- C:\WINNT\Fonts
>>>*!*	         9- C:\Documents and Settings\stysinger\NetHood
>>>*!*	        10- C:\Documents and Settings\stysinger\Desktop
>>>*!*	        11- C:\Documents and Settings\stysinger\Start Menu
>>>*!*	        12- C:\Documents and Settings\stysinger\SendTo
>>>*!*	        13- C:\Documents and Settings\stysinger\Recent
>>>*!*	        14- C:\Documents and Settings\stysinger\Start Menu\Programs\Startup
>>>*!*	        15- C:\Documents and Settings\stysinger\Favorites
>>>*!*	        16- C:\Documents and Settings\stysinger\My Documents
>>>*!*	        17- C:\Documents and Settings\stysinger\Start Menu\Programs
>>>
>>>where stysinger is the current logged on user. so you'll need #16 if you do it this way
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform