Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I retrieve the path to my documents folder
Message
From
16/07/2003 17:16:36
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00797361
Message ID:
00810841
Views:
41
Hello again,

Now, I have a new problem again with 'My documents'. Now I am successfully passing in the argument "MyDocuments" to the specialfolders method. However, the users of this application use it through citrix. The method returns the path to the My Documents folder for the given user, on the citrix server, not to their local machine. How could I have the application determine the My documents folder for the physical machine where the citrix instance is running, not for the physical machine for the citrix server itself? Honestly, I am very much a newbie to Citrix and don't really know the architecture.


>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>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform