How to get the current user desktop path?

how to get the current user desktop path ?

1 Like

@shivamrana Environment.Username try this

3 Likes

in which activity
??

strDesktop =“C:\Windows\users"+Environment.UserName+”\desktop"

7 Likes

Environment.GetFolderPath(Environment.SpecialFolder.Desktop)

is a better option than appending in the way you mentioned.

@shivamrana - the above returns a string. you can use an assign activity for that.

6 Likes

This is more easier

15 Likes