echo "C:/DATA/SLIDES/" . date("l") . ".pps";
$openPowerPoint = "POWERPNT.EXE /S C:\\DATA\\SLIDES\\" . date("l") . ".pps";
system($openPowerPoint);
ブラウザは待機しているように見え、サーバーでは何も起こりません。私は何か間違ったことをしていますか?
このファイルの名前はMonday.ppsです。
アップデート -
このコードを実行できます
$runCommand = "C:\\WINDOWS\\system32\\shutdown.exe /r /t 5 /c \"The system is being updated\"";
$WshShell = new COM("WScript.Shell");
$output = $WshShell->Exec($runCommand)->StdOut->ReadAll;
echo "<p>$output</p>";
パワーポイントの起動にご協力いただければ幸いです。