How to get the current user desktop path?


#1

how to get the current user desktop path ?


#2

@shivamrana Environment.Username try this


#3

in which activity
??


#4

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


#5

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

This is more easier