batch file - Wierd issue with using task schedule to process php script -


i have created task schedule processes batch file in turn processes php script ("sendtext.php") send text message. "sendtext.php" includes php file ("prefs.php") checks whether particular text file exists or not. if does, process continues, otherwise gives alert , redirects different page create text file first. now, if run batch file manually, send text message. when run scheduled task runs same batch file, gives alert included file ("prefs.php") because can't find text file. php files , batch file in same folder. think it's kind of path issue task schedule. please help!!!

on .bat file, use change directory command (cd) program root directory. after have configured environment variables php, can run php on next line , not have issues include, require, etc. statements. if don't configure environment variables, second line should point php.exe directory: c:\program files\php...php.exe

cd c:\inetpub\wwwroot\myprogram-dev\ php execute-this.php 

Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -