How to get the current user desktop path?

how to get the current user desktop path ?

@shivamrana Environment.Username try this

1 Like

in which activity
??

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

1 Like

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.

2 Likes

This is more easier

6 Likes