I'm trying to pass a DOS command to delete the entire contents of a directory. Here is the code:
function ExecCommand($command) {
$doit = exec($command, $output, $retcode) or die("$command was unsuccessful!");
}
I'm getting this output:
del /Q \\homie\cdrive\Lotus21\polled\01\ was unsuccessful!
The problem is this: It's working fine! When I go look at my actual directory, there's nothing in it. The delete command works, but PHP isn't recognizing that it worked. Any known reason for this?
Thanks,
-J