Obtener la ruta de carpeta Winforms

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