bals28mjk Posted June 27, 2008 Share Posted June 27, 2008 Hey. I'm trying to open a batch file on win xp, but the exec function doesn't seem to be working. exec($path); I've tried different combinations of /,//,\ to navigate to the directory. Nothing happens when I open the file via a browser, but i tried it in a cli window and it opens the cmd.exe, but recloses immediately and none of the code gets executed. Anyone know what's going on here? Thanks. Link to comment https://forums.phpfreaks.com/topic/112171-exec-batch/ Share on other sites More sharing options...
waynew Posted June 27, 2008 Share Posted June 27, 2008 Does your server allow .bat files? Link to comment https://forums.phpfreaks.com/topic/112171-exec-batch/#findComment-575838 Share on other sites More sharing options...
bals28mjk Posted June 28, 2008 Author Share Posted June 28, 2008 Yeah. (I'm testing on a local system.) Link to comment https://forums.phpfreaks.com/topic/112171-exec-batch/#findComment-576399 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.