Bonjour,
Voici mon code:
La commande fonctionne lorsque le dossier Tls est dans un chemin sans espace mais pas lorsqu'il en possède.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 string str = " -apply -p " + Application.StartupPath + @"\Tls\\Hui.bps" + " -o sortie " + GlobalVariables.FilePath; Process process2 = new Process(); process2.StartInfo.Arguments = str; process2.StartInfo.FileName = Application.StartupPath + @"\Tls\bt.exe"; process2.StartInfo.CreateNoWindow = true; process2.StartInfo.UseShellExecute = false; Process process = process2; process.Start(); process.WaitForExit();
Comment faire pour qu'il soit fonctionnel dans les 2 cas ?
Merci
Partager