サーバーを実行していWindows 7 64bit for WAMP 2
ます。
for exbatch script
を使用してプログラムを実行しています:Windows Com Component
C:\wamp\bin\php\php5.3.13\php.exe C:\wamp\www\test\command.php
$WshShell = new COM("WScript.Shell");
$oExec = $WshShell->Run($command, 7, false);
実行中のプログラムの数がわかる"cmd.exe"
と、以下のコマンドを使用してすべてのプロセスが一覧表示されます。
tasklist /svc /fi "imagename eq cmd.exe"
そして、phpスクリプトを使用して以下のコマンドでそれらを殺します:
$output = shell_exec('taskkill /F /IM "cmd.exe"');
ここで、すべてのcmd.exe
ウィンドウが閉じられるわけではありません。
上記のコードで何がエラーになる可能性がありますか?Some windows are closed, while some remains open which is executing the command.
助けてください。