Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I retrieve the path to my documents folder
Message
From
06/06/2003 14:00:19
 
 
To
06/06/2003 13:27:30
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00797361
Message ID:
00797380
Views:
46
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform