Interesting Mike,
but wouldn't that output the result to a new exe in stead of the application initiating the cmd?
Erel, this is the code for php
Code:
<?php
$cmd = "C:\WINDOWS\system32\ping.exe ping 10.16.2.102 -n 1 && exit";
exec($cmd, $output);
print_r($output);
?>
the code is similar to B4P, the only exception is print_r which basically shows the complete array "$output" on the page.
echo $output[5];
would also be an option...
:-)