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 "\22.214.171.124\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