ierpe Posted April 2, 2009 Report Share Posted April 2, 2009 Hi,I am not very familiar with microsoft OS.I am trying to setup a scheduled task that will launch a php script (using php-cgi, so its more like a shell script written in php).In a command prompt, the command I want to schedule is:C:\myfolder>php script.phpI tried to set up a scheduled task running the command:C:\Program Files\PHP\php.exe C:\myfolder\script.phpor C:\myfolder>php script.php, etc.but it doesnt work.(I also tried "C:\Program Files\PHP\php.exe C:\myfolder\script.php", "C:\Program Files\PHP\php.exe" "C:\myfolder\script.php", etc)And i've been googling for a while but couldn't find the solution!1) What do I have to write in the scheduled task to make php execute my script?2) Is it possible to have these 2 cases:- the script is ran in the background- a command prompt opens and executes the script, allowing to view the ouputs of the scriptThanks Quote Link to comment Share on other sites More sharing options...
ierpe Posted April 2, 2009 Author Report Share Posted April 2, 2009 Ok i found it:"C:\Program Files\PHP\php.exe" C:\myFolder\script.php in the "Run" field of the scheduled taskC:\myFolder in the "Start in" folderThanks for nothing ;) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.