Windows Scheduler PHP Extension

只要下载这个PHP扩展,安装上就OK啦

下载NTSchedule.zip

verifyntlogon() example

<?php
if (verifyntlogon(“myusername”,”mypassword”,”mydomain”) {
    print “Verified!”;
} else {
    print “Verify Failed”;
}
?>

task_add() example
Creates a task called “Example Task” that starts the windows calculator.

<?php
task_set_machine(“mymachine”,”myusername”,”mypassword”);
task_add(“Example Task”, “calc.exe”);
?>

task_change_value() example
Changes the first task application to the windows calculator.

<?php
task_set_machine(“mymachine”,”myusername”,”mypassword”);
task_change_value(0,”application_name”,”calc.exe”);
?>

task_count() example

<?php
task_set_machine(“mymachine”,”myusername”,”mypassword”);
print “Count: “.task_count();
?>

task_delete() example
Deletes the first task.

<?php
task_set_machine(“mymachine”,”myusername”,”mypassword”);
task_delete(0);
?>

更多的请看压缩包文档