Lancer un exécutable sur c#
Résolu/Fermé
A voir également:
- Lancer un exécutable sur c#
- Lancer un programme au demarrage - Guide
- Impossible de lancer l'application ps4 - Forum Jeux vidéo
- Antimalware service executable ✓ - Forum Windows 10
- Antimalware Service Executable : Processeur saturé ✓ - Forum Virus
- 'Ls' n’est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes. - Forum Windows
2 réponses
Lust
Messages postés
243
Date d'inscription
mercredi 28 septembre 2005
Statut
Membre
Dernière intervention
12 septembre 2007
123
22 nov. 2006 à 09:44
22 nov. 2006 à 09:44
pardon, c'est plutot ca :
System.Diagnostics.ProcessStartInfo myInfo = new System.Diagnostics.ProcessStartInfo(); myInfo.FileName = "MonAppli.exe"; myInfo.WorkingDirectory = "MonRepertoire"; System.Diagnostics.Process.Start(myInfo);
Lust
Messages postés
243
Date d'inscription
mercredi 28 septembre 2005
Statut
Membre
Dernière intervention
12 septembre 2007
123
21 nov. 2006 à 18:35
21 nov. 2006 à 18:35
System.Diagnostics.ProcessStartInfo myInfo = new System.Diagnostics.ProcessStartInfo(); myInfo.FileName = "MonAppli.exe"; myInfo.WorkingDirectory = "MonRepertoire"; System.Diagnostics.Process.Start("MonAppli.exe");
Salut et merci pour le tuyau. J'ai pas bien compris dans ton code à quel moment tu lance myInfo, alors j'ai plutôt essayé:
Process myInfo = new Process();
myInfo.StartInfo.FileName = "MonAppli.exe";
myInfo.StartInfo.WorkingDirectory = "Repertoire";
myInfo.Start();
Je sais pas si c'est sensé faire la même chose, sinon merci de me donner la différence. Merci encore.
Process myInfo = new Process();
myInfo.StartInfo.FileName = "MonAppli.exe";
myInfo.StartInfo.WorkingDirectory = "Repertoire";
myInfo.Start();
Je sais pas si c'est sensé faire la même chose, sinon merci de me donner la différence. Merci encore.
7 avril 2013 à 16:57
3 août 2014 à 17:21