Forum Moderators: coopster

Message Too Old, No Replies

exec, problem with working directory

         

dev_guy13

4:31 pm on May 14, 2013 (gmt 0)

10+ Year Member



exec.php inside D:/files/
exec("D:/files/menu/pdf/".$name.".bat", $output);

And
print_r($output);


returns

D:/files



If I place exec.php inside pdf folder, everything woks fine.

But not outside even if I provide the absolute path. etc...

Appreciate your help.

rainborick

6:55 pm on May 14, 2013 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



It could be that your .bat script requires or assumes a different current working directory.