[C#] System.Diagnostics.Process et resources
Bonjour!
J'ai un petit soucis!
En gros, j'ai un objet Process et j'aimerai qu'il lance l'execution de java avec en parametre un fichier present dans les resources de mon projet...
Je ne vois pas trop comment faire...
Voila un bout de code :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
public static bool launchProcess()
{
_pProcess = new Process();
_pProcess.StartInfo.RedirectStandardError = true ;
_pProcess.StartInfo.RedirectStandardOutput = true ;
_pProcess.StartInfo.FileName = "java" ;
_pProcess.StartInfo.Arguments = _"-cp . mon_fichier_en_resources";
_pProcess.StartInfo.UseShellExecute = false;
_pProcess.StartInfo.CreateNoWindow = true;
_pProcess.Start() ;
...
} |
Le probleme etant qu'il ne trouve pas le fichier de resources...
Merci!!