Получить путь папки Winforms
string path = Path.GetDirectoryName(OpenFileDialog1.FileName); //output = c:\folder
TheRealSte
string path = Path.GetDirectoryName(OpenFileDialog1.FileName); //output = c:\folder