문제

When I'm using exec or shell_exec they wait until the spawned app will exit (in Windows). But I need to run and forget (and exit). How?

I tried start DOS/Windows command but did not find the solution yet.

도움이 되었습니까?

해결책

$shell = new COM("WScript.Shell");
$shell->run($command, 0, false);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top