Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I retrieve the path to my documents folder
Message
De
11/07/2003 19:30:33
 
 
À
06/06/2003 14:00:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00797361
Message ID:
00809479
Vues:
59
Steve,

Hello again. I implemented my function to return the path to 'my documents', using a hard coded 16 for the path to the my documents folder. It worked fine on my testing on my machine. But now the QA group is QA'ing my application remotely, using Citrix. On the QA person's machine the return value is for the path is:

C:\Documents and Settings\qausersname\Start Menu\Programs

Which you list as #17.

Any ideas on why this would vary by machine?

Thanks,

David


>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