I am developing a web interface that will take care of changing colors in several Excel files.
For this, I try to run a .bat script that launches a .vbs script. I do all this server side (on an intranet machine so total access) that I configured with wamp (Apache 2.4.37 and PHP 7.2.14).
The problem is that the php page does not execute the script and run the browser in a infinite loop. My line for the script:
exec ('launch_vbs.bat');
I tried :
with system () and passthru (), no change.
to put the whole way, no change.
to specify chmod to 777 on my launch_vbs.bat file, no change
to add 2> & 1 at the end, no change.
to launch my file launch_vbs.bat in command line on the server, everything is done correctly, it modifies the colors of my excel files
to launch the php page containing the exec () in the command prompt of my server, the exec () is done correctly and the colors are modified in excels
My .bat and .vbs files (and even .php) are all in the same directory in the wamp server folder (C:/wamp64/www/MyProject/)
In short, I hold a little and I do not know what to do ... If anyone has an idea it would be great!
Thank you in advance !