Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding user paths
Message
 
To
16/04/2008 07:06:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01311025
Message ID:
01311029
Views:
28
This message has been marked as the solution to the initial question of the thread.
>Hi all
>How can I know the path "Documents and Settings\user_name\My documents..." folder of the current user logged in system.
>
>Thank's in advance,
>NPedro

Try:
DECLARE INTEGER SHGetSpecialFolderPath IN Shell32.DLL INTEGER, STRING @lcPath, INTEGER, INTEGER
lcPath = SPACE(255)
IF SHGetSpecialFolderPath(0, @lcPath, 5, 0) == 1
   lcPath = ALLTRIM(lcPath)
   WAIT WINDOW lcPath
ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform