Yeah... I don't like Windows programming - but I'm doing a job and I need some help.
I basically need to execute a .bat file from PHP, but it doesn't seem to work (In ZEND, but that doesn't really matter too much... Since it runs php/apache) - it doesn't run at all, and sometimes, after running my script, I open the .bat file in notepad and see everything has been changed into Japanese.
<?
exec("run c:\test.bat");
?>
Can anyone help me here?
Edit: The .bat file just runs "notepad.exe" - nothing real complex...
Exec seems to work when I use it on a .jpg... Strange enough as it is