Bonjour,

Voilà le code pour lancer un exe:
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)
        {
            try
            {
                Process proc = new Process();
                //proc.StartInfo = new ProcessStartInfo(@"C:\\test\\worxpress.pdf");
                proc.StartInfo = new ProcessStartInfo(@"C:\\test\\AutoHotkey.ahk");
                proc.Start();
                proc.WaitForExit(); 
            }
            catch(Exception e)
            {
                Console.WriteLine("message: " + e.Message);
            }            
        }
Pourquoi cela ne fonctionne pas pour lancer un pdf ou un fichier ahk?
Il me renvoie chaque fois une exception "fichier iintrouvable" alors que le fichier est bien là! C'est le bon path.

Merci d'avance