0
static Process procphp;
static void runPhpCommand()
{
string cPath = @"php";
string cParams = "-S localhost:80";
string filename = Path.Combine(cPath, "php.exe");
procphp = System.Diagnostics.Process.Start(filename, cParams);
}
Ce code de travail. Comment fermer ce processusCan (Close) envoyer un ctrl-C (Php cli.exe) à une application sur Windows
plus de code ou des explications qui ne fonctionne pas
procphp.CloseMainWindow();
procphp.Close();
procphp.CloseMainWindow exactement();
procphp.Close();
support sans paramètre
Quelle est votre question? –
Comment fermer ce processus –
Tout comme vous avez écrit: 'procphp.CloseMainWindow(); procphp.Close(); ' –