Forum Moderators: coopster
This way, you don't even need the executable in the web root, but you can have it below it, too.
}
if($com=new COM("WScript.Shell")) echo "yes";
$cmd="C:\sample.exe";
if(!$cmd1=$com->exec($cmd))
{
echo "can not exec()";
} else{
echo"can run exec()";
}
I got the answer 'can run exec()' BUT I cannot see the interface of the sample.exe. Anything I have missed in the command?