r/PHPhelp • u/secon25 • Apr 23 '19
Php cmd command with console
Hi, i want to launch a .bat file. I want to launch it with console. I tried:
system("my_script.bat");But console doesn't open and the output is printed in my php page.
I also tried:
exec("my_script.bat");But console still don't open
SOLUTION:
system("start my_script.bat");
7
Upvotes
1
u/Cashman_J Apr 23 '19
I have never done this in windows before, is it finding the file?