On 20 Mar 2004 Ben Ramsey wrote:

> I know how to run a PHP script as a cron job on a *nix machine.  So, 
> does anyone know how to use the Task Scheduler on Windows to do the 
> same?  Or is it even possible?

The fundamental idea is simple -- work out a command line from a 
regular command prompt that does what you want.  Then set it up under 
Control Panel / Scheduled Tasks.  You will have to specifically invoke 
cmd.exe if you want to redirect the output, for example here's a 
command line I just tried that worked properly:

        m:\winnt\system32\cmd.exe /c h:\php\cli\php.exe test4.php >> c:\x.txt

--
Tom

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to