Howto run a dos batch (exec?) in Windows

DannaD

New member
Hi, I need to run a batch dos file in my Apache/php/mySql on Win 11 environment.

The general problem is to extract data from mySql, writing a file with this data and after analyze the data with a external software that create an output file with results, and finally doing some further calculation in the resulting data file.

So, everything it work fine but I am not able to run the external software, I tryed exec(), System(), passthru() without any result. I need to run the software manually.
In practice I need to run a dos software, i.e. "mysw.exe < args.txt", but this don't wont run, also if I write a batch file with that command it work in a dos terminal but not in exec().
Both the .bat and .exe are in a subfolder of c:\apache24\htdocs.

I read dozen of comments but anyone helping me a little.
 
Back
Top