Holen Sie sich Ordnerpfad Winforms
string path = Path.GetDirectoryName(OpenFileDialog1.FileName); //output = c:\folder
TheRealSte
string path = Path.GetDirectoryName(OpenFileDialog1.FileName); //output = c:\folder