Task Scheduler in Windows 10

Bonginkosi Nkambule 21 Reputation points
2022-08-23T10:14:26.293+00:00

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)

233937-pic-3.png.
234033-pic-1.png

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,797 questions
{count} votes

Accepted answer
  1. Bjoern Peters 8,856 Reputation points
    2022-08-23T11:09:08.407+00:00

    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