1

I have a program which is sending and receiving text messages and auto process the massage.

For other reason's I don't need to use JavaScript or HTML to refresh the page so I can send the message, so for the program to send back the message I need to use .bat or any window automated system

My question is how can I run the send.php file every 10 sec using .bat

FetchLazy
  • 30
  • 6
  • 5
    Possible duplicate of [Run Cron Job on PHP Script, on localhost in Windows](http://stackoverflow.com/questions/24035090/run-cron-job-on-php-script-on-localhost-in-windows) – Alessandro Da Rugna Mar 22 '16 at 10:21
  • I never understand why its quicker to register and post a question on here than it is to search Google/StackOverflow and click the first result ... :) – Egg Mar 22 '16 at 10:28

1 Answers1

3
@echo off
set "PATH=%PATH%;C:\PHP"
:loop
call php  ./folder/folder2/sent.php
PING 1.1.1.1 -n 1 -w 10000 >NUL
goto :loop
npocmaka
  • 55,367
  • 18
  • 148
  • 187