Pobierz Winforms ścieżki folderów

string path = Path.GetDirectoryName(OpenFileDialog1.FileName); //output = c:\folder
TheRealSte