I am trying to make a kind of panel where I would like to have "start/stop" operations of application(Game server).
HTTP server is running on Windows Server 2008 R2(WAMP SERVER 64-bit)
I found out that I can use: psExec, it isn't waiting for finish application, and at least providing me PID.
There is a code of .bat:
cd "C:\Program Files (x86)\LucasArts\Star Wars Jedi Knight Jedi Academy\GameData\"
.\jampded +set dedicated 2 +set net_port 29075 +set fs_game lugormod +exec server.cfg
and the PHP code:
<?php
$command = "\"C:\\Program Files (x86)\\LucasArts\\Star Wars Jedi Knight Jedi Academy\\GameData\\PsExec.exe\" -d \"C:\\Program Files (x86)\\LucasArts\\Star Wars Jedi Knight Jedi Academy\\GameData\\serverstart.bat\"";
//echo ($command);
exec("$command");
?>
showing: error while executing test.php, execution was longer than 30s
But when I am writing that command in console, it's showing PID, and exiting automatically, even when started prog is still being run.
(sorry for my English ;) )