i have kind of problem combination of batch , php script want move files automaticly on windows machine.
installed xampp, made apache run @ service , on. created batch script should move files 1 location another.
running batch script on computer works fine, starting php script not work.
killing process or shutting down machine kind of method work, moving files 1 location doesn't work. seems move command skipped, since commands in front , behind work.
<?php exec('"c:\users\bob\desktop\kill.bat"', $output, $return); foreach($output $line){ echo $line."<br/>\n"; } ?> tha batch file like:
taskkill /im test.exe /t /f move c:\path\to\stuff\*.avi z:\path\to\destination\ shutdown -s remember: problem seems appear when script started via php. startig hand make run properly!
Comments
Post a Comment