Reputation: 1228
Is there a way to get the path to Desktop C:\Users\Username\Desktop
for any user? I'll like to store it in a variable. Currently, I have mine hardcoded in a function
Upvotes: 0
Views: 119
Reputation: 32732
Use SHGetKnownFolderPath. See the linked Microsoft documentation.
Upvotes: 1