Bonjour,

j'ai un fichier .bat qui contient cette commande :mais je voudrais pouvoir lancer cette commande sans passer par un fichier .bat

j'ai essayé ça :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
ProcessStartInfo proc = new ProcessStartInfo("UnregServer");
proc.Arguments = "DANSrv";
proc.WorkingDirectory = dossier;
Process.Start(proc);
mais ça ne marche pas...

Comment faire?
Je ne suis pas sûre qu'il faille utiliser Process.Start, mais je ne vois pas qu'utiliser d'autre...

merci