Task Scheduler in Windows 10

Bonginkosi Nkambule 21 Reputation points

Good day People,

I hope you all doing well. Please kindly help me, I am trying to perform or run a cron job for my PHP code. I need this task to run at the background whereby it executes the PHP Script for sending an email. Below is the screenshot of where i stored the .bat and .vbs files, screenshot of the code in the script.bat and shellscript.vbs files (Attachements)


Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,928 questions
{count} votes

Accepted answer
  1. Bjoern Peters 8,781 Reputation points

    Your scripts aren't attached (maybe removed for security reasons)... so my answer may lead in a different direction.

    Why aren't you just doing something like this in your batch file?

    php.exe C:\checkContracts\myfile.php  

    And trigger that script via task scheduler?

0 additional answers

Sort by: Most helpful