you can add the variable to the filename, and get it with %1 %2 ... I guess you know how to send it to php, you can also use a socket for this and [netsend]
How do you do to receive a variable in a .bat to send (in my exemple)
10 to 'arbre.php' ? (Pd send 10 to .bat then .bat send 10 to PHP). Thanx ++Jack
however, I usually write a batch file and start the .bat file with popen, and problems goes away.