get folder path winforms
Code Example - get folder path winforms
string path = Path.GetDirectoryName(OpenFileDialog1.FileName); //output = c:\folder
string path = Path.GetDirectoryName(OpenFileDialog1.FileName); //output = c:\folder