hello
hello

Reputation: 1228

Dynamically get link to Desktop on PC for any user

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

Answers (1)

1201ProgramAlarm
1201ProgramAlarm

Reputation: 32732

Use SHGetKnownFolderPath. See the linked Microsoft documentation.

Upvotes: 1

Related Questions