0

i am trying to achieve what is asked here, and i have tried the answer: How do I run a PHP script using windows schedule task?

I have got as far as making the .bat file, but when i run the file i get this: http://puu.sh/8wbqj.png

I have tried just running the command in cmd, and get the same error. Any ideas why this is guys?

Community
  • 1
  • 1
  • Quote the path if it contains spaces: `"C:\Program Files\iis express\PHP\v5.3\php.exe" …` – Gumbo May 02 '14 at 15:39

1 Answers1

0

DOS doesn't like spaces. Wrap it in quotes like this:

"C:\Program Files\iis express\PHP\v5.3\php.exe" -f "C:\htdocs\clients.php"
Latheesan
  • 23,247
  • 32
  • 107
  • 201