the only way ive been able to do this in php/iis/isapi. otherwise i get the fork error. i hope they fix this soon.
Other than this php/iis/isapi is HOT! really!
<?
$asp =("http://localhost/cmd.asp?bat=$bat");
$fp = fopen($asp, "r");
fclose($fp);
?>
bat.asp
<%@ LANGUAGE = "VBSCRIPT" %>
<%
Server.ScriptTimeout=1200
dim vbatpath, cmd, project
project = request.querystring("bat")
vbatpath = "c:\bat\"&project&".bat"
cmd = vbatpath
set WshShell = Server.CreateObject("WScript.Shell")
retCode1 = WshShell.Run("cmd /c " & cmd, 1, True)
set WshShell = nothing
%>