I have a batch file which is going to be called by Windows Task Scheduler to execute given .php file.
However there seems to be a problem because when I provide full path to php.exe i.e.
start /B /wait C:\xampp\php\php.exe -f %inputTask% >> %outputDir%
batch file executes as it should, but when I try to give variable like so:
set php="C:\xampp\php"
start /B /wait C:\xampp\php\php.exe -f %inputTask% >> %outputDir%
if fails given the following error :
Windows cannot find '-f'. Make sure you type the name correctly, and then try again.