I already set apache
so that PHP can execute .bat
files, I have to move files from another server to my computer to do operations with it, when I execute the batch
manually if I do the function, but at run it from php
no longer, I can say that I have another batch
that moves a local file to another local route and when executed from php
if I perform the action.
Batch
that connects to a server:
Copy "\180.176.114.15\respaldos\proyecto_bboo\error.txt"
"C:\xampp\htdocs\caet\error.txt"
php
that executes it:
<?php
exec("C:/xampp/htdocs/caet/copi2.bat");
?>
When printing the error it says Acceso denegado
. I must put the file batch
in a special path or what else I have to configure in my php.ini
.
I already tried the solution that they gave me below and even then it does not work I leave capture of the batch and when executing the batch from the php