I am attempting to execute a batch file from within PHP.
The batch file runs a DOS command to open and print (to a physical printer) a PDF document.
I have a tried a number of different options, but nothing prints out. I was getting a number of syntax errors, however, I then had to enable the Advanced Security functions and give the local user full access right to cmd.exe. Also I have enabled IIS to interact with the desktop. I'm getting no syntax errors now but I am also not getting my print out. I could list ALL of the code I have attempted but still I have gotten nothing. Here's on I tried.
<?php exec('test.bat'); ?>
- Windows XP
- IIS 5
- PHP 5