Obtenez des winforms de chemin de dossier
string path = Path.GetDirectoryName(OpenFileDialog1.FileName); //output = c:\folder
TheRealSte
string path = Path.GetDirectoryName(OpenFileDialog1.FileName); //output = c:\folder