[EMAIL PROTECTED] wrote:
> On W3K you could use this as the run line in
> Scheduled Tasks and probably the same in XP
> although I have not tested this. The same
> components exist in the W2K version although
> may be in different locations/names.
> 
> Run: cmd /c "c:\php\php.exe -q c:\path\to\php\file.php"

This is *very* close to what I use with Windows XP (actually I use this
for file types so that I can right click and run a PHP file on the
command line).

cmd /K "C:\php\php.exe -f %1"

The %1 is a variable that gets replaced.  If you set this up for the
file type then the %1 is the name of the file.

So to apply this knowledge to scheduled tasks, you can do:
cmd /K "C:\php\php.exe -f C:\path\to\your\file.php"

> 
> Start in: C:\path\to\php\file\
> 
> Run as: username/pass with security acess to
> both php.exe and the file.php

Agreed... it is much easier to manage it this way although it is
*possible* to use the command "runas" to execute PHP as a different user.

For help on these commands, just use:
cmd /?
runas /?

> 
> YMMV
> 
> pjn
> 


-- 
Teach a man to fish...

NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
STFM | http://www.php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to