Home > C#, MicroSoft > Get User desktop folder path in C#

Get User desktop folder path in C#

How to Get the Path to the User desktop in C#.NET ? Here is the single line Code

string strPath=Environment.GetFolderPath(System.Environ

ment.SpecialFolder.DesktopDirectory).ToString();

OUTPUT looks like this..

F:Documents and SettingsShyjuDesktop

  1. No comments yet.
  1. No trackbacks yet.