Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get users desktop location?
Message
From
21/06/2021 18:27:58
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:
01681505
Views:
43
Getenv("userprofile")+"\desktop\
>>The above will not work.

How come? I thought this would be the User Profile environment variable used by Windows itself. I suppose it's possible desktop goes somewhere else in some Citrix configs, is that the objection?

>>You need to use something like this:
objSFolders = CreateObject("WScript.Shell")
Should also be fine unless PC is locked down...

To Victor/whoever: if you fire up Command Prompt (cmd) and type SET, it displays the available environment variables and current content, which may give you some pointers.
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us.
"
-- Shakespeare: Coriolanus, Act 1, scene 1
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform