Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I'm trying to get the "Default Desktop Path"(a "Path" that brings me on the Desktop on "every" Pc).

I'm not good at programmings/english, Sorry. :( But i would love to get an answer. :)

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
216 views
Welcome To Ask or Share your Answers For Others

1 Answer

If you want to get the file system path:

Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory)

If you want to get the shell namespace folder:

Environment.GetFolderPath(Environment.SpecialFolder.Desktop)

P.S.: If you do not know the difference: What's the difference between SpecialFolder.Desktop and SpecialFolder.DesktopDirectory?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
...