Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get users desktop location?
Message
 
To
21/06/2021 15:52:43
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01681485
Message ID:
01681501
Views:
47
>>>My problem is that now some of the users are on Citrix and using onedrive, so this location is no longer valid. Isn't there a SYS() function or something I can run to get the logged in users' desktop folder location???
>
>Worth a try:
>
>
Getenv("userprofile")+"\desktop\
The above will not work.

You need to use something like this:
objSFolders = CreateObject("WScript.Shell")
x = objsfolders.SpecialFolders
?x.Item('mydocuments')
?x.Item('desktop')
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform