how to run some .exe file using php
i am facing following problem.
1. i have some exe file(for example A.exe).
2. it take input as pdf file and again give output as pdf like from command prompt.
for example :- C:\>A.exe "a.pdf" "b.pdf". it perfetcly working from command prompt.
my problem is that when run through php using passthruor exec command,it gives permission denied error. like this
passthru('C:\inetpub\wwwroot\pdfsaveagain\PDFSaveAgain.exe "C:\inetpub\wwwroot\pdfsaveagain\1.pdf" "C:\inetpub\wwwroot\pdfsaveagain\2.pdf"');
PDFSaveAgain.exe is made using Interop.Acrobat.dll file.
i assign full rights to cmd.exe also but it is not working.
please anybody has any idea or suggestion,please share with us.