I'm trying to call a batch file on win xp, that when executed calls a java program.
When I write a batch file that just copies a file, php calls the batch file and it works great. However, when I change the batch file to call the java file, it fails. If I click directly on the batch file to run it, the java program executes. Why is this?
Below is my code:
<?php
system ("C:\DEL.BAT")
?>
This is my batch file:
c:\j2sdk1.4.2_09\bin\java Copy