我可以使用windows命令行调用以下exe,但使用exec()函数,它不起作用。
我必须将一个目录作为参数传递给exe文件。
更新:
$command = '""C:''Users''cArn''Documents''Visual Studio 2010''Projects''word_to_pdf''word_to_pdf''bin''Debug''word_to_pdf.exe" "C:''wamp''www''zabjournal''files''journals''1''articles""';
exec($command);
似乎仍然不起作用。
使用单引号'
代替
$command = 'C:'Users'cArn'Documents'Visual Studio 2010'Projects'word_to_pdf'word_to_pdf'bin'Debug'word_to_pdf.exe C:'wamp'www'zabjournal'files'journals'1'articles';
exec($command);
感谢
:)
尝试
passthru($command)
关闭exec()