Bonjour à toutes et à tous,
Pour ouvrir un fichier HTML avec le navigateur par défaut sous Linux, j'emploie le code suivant :
Comment fait-on sous Windows ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 try CurDir:= GetCurrentDir; Prc:= TProcess.Create(nil); SetCurrentDir(DirEXE); Prc.CommandLine:= 'xdg-open '+'TraitIm.html'; Prc.Execute; finally Prc.Free; SetCurrentDir(CurDir); end;
Merci de votre aide
Pierre
Partager