Jump to content

Trying to run batch file from browser?


dkirk

Recommended Posts

Hello Gang,

 

I am trying to run a batch file from a php file via a web browser but cannot get it to execute. This is part of an intranet application and I am pulling my hair out trying to get it to work. The code below should work but when I call the page throught IE nothing happens. Any ideas?

<?php
exec("SyncNow.bat");
?>

Link to comment
https://forums.phpfreaks.com/topic/135706-trying-to-run-batch-file-from-browser/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.