Unable to run executables, only shell commands
Hello.
I am running php 5.1.1 and IIS Windows XP SP2. I have figured out how to get exec() and passthru() to work by enabling read and execute permissions for iwam and iusr accounts on cmd.exe as well as the executable I am trying to run.
I can get things like exec("dir"); to work and exec("date /t");, but these are system shell commands, not executables.
When I try to run an executable by this means:
exec("x:\path\chkdsk.exe c:",$output,$returnval);
I get no $output but the $returnval is 1.
I'm at a loss...I'm not sure why this won't work. shell_exec() won't work at all even with shell commands, and passthru() behaves similarly to exec();
Any suggestions?