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:00:19
 
 
À
06/06/2003 13:27:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00797361
Message ID:
00797380
Vues:
47
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