Posted By: Anonymous
I have a batch file daily.bat, this is the code:
cd C:inetpubwwwrootinfowebfactuurcron c:PHPphp.exe -f ./cron_pdf.php ftp -s:ftp_upload.txt ftp.site.be
And I created a task with task scheduler in Windows 7. When I run the batch manually, everything goes fine, but when I try to run it with the task scheduler nothing happens.
My action is
'run script' "C:inetpubwwwrootsitexcrondaily.bat"
UAC is off and I am Admin.
Any idea why this is not working?
I faced the same problem, but I found another solution without having to modify my batch script.
The only thing that I missed out is at the ‘Action’ settings – “Start in (Optional)” option.
Go the task properties –> Action tab –> Edit –> Fill up as below:
- Action: Start a program
- Program/script: path to your batch script e.g.
- Add arguments (optional): <if necessary – depending on your script>
- Start in (optional): Put the full path to your batch script location e.g.
C:Usersberuk(Do not put quotes around Start In)
Then Click OK
It works for me. Good Luck!