Exeoutput fails to execute VC++.exe file

A simple VC++ file A.exe which write a text file in run time. A php code B.php including exec(""); runs successfully in the xampp environment. means “C://xampp/hdocs/A.exe”>
I transfered B.php and A.exe from C: into the “J:/exeoutput/xxxx/” in USB drive. And C.exe which was changed to J is compiled by exeoutput. Running C.exe does not generate any text files.
Why ?

Without full code it will be difficult.
If you want to run an EXE file, you can use HEScript: http://www.exeoutput.com/help/samplescriptrunexe