如何从Windows .bat运行PHP脚本

This is what i want to do in a batch file:

  1. write a file to ftp folder
  2. run php script (http://mylocation.url/script.php)
  3. download a file from ftp folder

FTP i have read before, it is possible to do it in a batch file. But i don't found a way to execute my php script on my linux server. Cronjob is not possible for this solution cause the uploaded file will be changed from Scipt and after i need it downloaded again.

Any one has a solution?

Thanks for help Phil

plink tool can be used to execute commands in Linux server from Windows through SSH. Below is the syntax

plink.exe root@10.0.0.1 -pw password "<ur script execution command here>"

Say if I want to run a shell script I would type in the command "sh myscript.sh". To achieve this the Linux server should have sshd running.

The command can be used along with other commands part of the batch file.