Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I retrieve the path to my documents folder
Message
 
 
À
11/07/2003 19:30:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00797361
Message ID:
00809482
Vues:
56
This message has been marked as the solution to the initial question of the thread.
David,

Try to use folder name instead of number
oShell = CreateObject('wscript.shell')
? oShell.SpecialFolders("MyDocuments")
See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wsprospecialfolders.asp for details.

>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
>
<snip>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform