c# get path of a file code example Example: get documents path c# String path = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);