Hello,
I am running Apache and PHP on windows XP. Latest versions of them all.
I am trying to execute a simple .bat batch file that simply copies 4 files from one location to the batch files location.
The php exec command runs like this:
V:\Core\htdocs\wp\transfer.bat Y:\folder
here the batch file is executed and the command following is thrown into the batch file to specify where the files that need to be copied are.
The Y:\ directory is in windows considered to be a network drive, although it is really just a folder on the same machine, i did this because there are spaces in the folder names on its way to where I need the information copied from i.e. "Program Files"
When I run this in the command prompt by entering this in manually it runs perfectly. However when running exec in the PHP script nothing happens; when I run shell_exec it gives me the output and it shows that every line in the batch file is executed however it does not actually copy anything.
Looking into my apache error log I see that this is related:
"The system cannot find the drive specified."
Now what I am wondering is, how is it that I can run this script manually but apache tells me I cannot. My permissions are set to allow all and deny nothing since it is a machine well tucked into a safe place.
Apache resides on the machine in C:\reactor\core\ and it also setup a virtual drive as v:\core. Trying both does not work.
this was working before but now its not. any tips?