Archive

Posts Tagged ‘System.Environment’

Get User desktop folder path in C#

July 16th, 2008 Shyju No comments

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 Settings\Shyju\Desktop