salut j'ai rencontrer des problèmes pour manipuler la classe processe voici le code


Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
static void Main(string[] args)
        {
            Process p = new Process();
            Console.WriteLine( Process.GetCurrentProcess());
            p.StartInfo.FileName =@"C:\zaki.jpg";
            p.StartInfo.UseShellExecute = false;
            p.StartInfo.RedirectStandardInput = true;
            p.StartInfo.RedirectStandardOutput = true;
            p.StartInfo.CreateNoWindow = true;
           // p.StartInfo.Arguments = "wxccc.txt";
            p.Start();
 
 
 
        }
malgré que le fichier existe le compilateur me lance ->
The specified executable is not a valid Win32 application.
comme exception......merci :