Schedule Task for Windows. Create a configuration1. Click "Start"2. Click "Control Panel"3. Double-click the Task Scheduler4. Double-click "Join Task Scheduler"5. Go to the Task Scheduler
I found some methods on the Internet to execute PHP scheduled tasks in WINDOWS. one of them was completely written, but unfortunately I did not pass it. Finally, I had to combine the methods of various schools in order to run successfully here. 1. write a PHP program named test. php. the content is as follows:
The code is as follows:
$ Fp = fopen ("test.txt", "a + ");Fwrite ($ fp, date ("Y-m-d H: I: s"). "success! \ N ");Fclose ($ fp );?>
Th
:
"C:\Program files\winrar\winrar.exe" A-r-ibck-p123456-y e:\wwwroot\default\%date:~0,10%-webdata.rar E:\wwwroot\ Default\webmysql\*.*
Delete copy data
e:\wwwroot\default\webmysql\* is a backup directory and must be removed for easy next backup. Otherwise it's easy to repeat.
Copy Code code as follows:
DEL/S/q e:\wwwroot\default\webmysql\*
Backup Task DownloadsDescription
Download a command from a Web site to
security options on the Scheduled Tasks General tab and the starting (optional) option in the new operation.
Here it focuses on the second type of success.
Create a task”。 First, open the Windows Server 2008 system's Start menu, and select Programs/attachments/System Tools/Task Scheduler commands in turn.
Cli
Thinkphp regularly executes the php file windows System Task plan implementation ideas are as follows:
A batfile is executed at a time using the winmtr task execution function. the php.exefile is used in the batfile. php.exe can pass parameters to specify the class and method to be executed.
The method is as follows:
1. enable cli support for thinkph
) Create a scheduled taskTake Win8 as an example Control Panel management Tool Task Scheduler Task Scheduler Library create a basic task name (the name of your own scheduled Task) next (default "every day" do not change, back agai
Analysis of the development principles and implementation of Windows Task Manager
Analysis of the development principles and implementation of Windows Task Manager
Author: Brief [original]E-mail: Brief@fz5fz.orgHomepage: www.fz5fz.org www.safechina.netDate: 05-01-2003
The task
I found some methods on the Internet to execute PHP scheduled tasks in WINDOWS. one of them was completely written, but unfortunately I did not pass it. Finally, I had to combine the methods of various schools in order to run successfully here. 1. write a PHP program named test. php. the content is as follows:
The code is as follows:
$ Fp = fopen ("test.txt", "a + ");
Fwrite ($ fp, date ("Y-m-d H: I: s"). "success! \ N ");
Fclose ($ fp );
?>
On the internet to find some of the methods of Windows to perform PHP's scheduled tasks, there is a very full, unfortunately, I did not pass the case. At last, I had to synthesize the methods of each gate to succeed in my operation.1, write a PHP program, named test.php, the content is as follows:Copy the Code code as follows:$fp = fopen ("Test.txt", "A +");Fwrite ($fp, Date ("Y-m-d h:i:s"). "Success has been successful!" \ n ");Fclose ($FP);?>Program
\ WinRAR.exe" a-r-ibck-p123456-y E: \ wwwroot \ Default \ % date :~ 0, 102.16-webdata.rar E: \ wwwroot \ Default \ webmysql \*.*
Delete copy dataE: \ wwwroot \ Default \ webmysql \ * is the Backup Directory, which must be deleted next time. Otherwise, it is easy to repeat.Copy codeThe Code is as follows: del/s/q E: \ wwwroot \ Default \ webmysql \*
Backup Task downloadNote:Download commands from the website to the specified directoryCopy codeThe Code
1. Write a PHP program named test. php. The content is as follows:Copy codeThe Code is as follows:$ Fp = fopen ("test.txt", "a + ");Fwrite ($ fp, date ("Y-m-d H: I: s"). "success! \ N ");Fclose ($ fp );?> The program writes it boldly. It's okay to use include \ require.2. Create a Bat file named test. bat. The content is as follows:Copy codeThe Code is as follows:D: \ php \ php.exe-q D: \ website \ test. php// Change the Directory 3. Create a WINDOWS
The scheduled Task (Schedule Task) is a program similar to cron on the Windows platform, and of course the functionality is much worse.
Manual operation is impractical because you need to run a PHP program every hour.
First in the CMD test, for example: C:/appserv/php5/php.exe "c:/appserv/www/temp2.php"
One thing to note is that if that PHP references another
WINDOWS2000/XP included in the Task Manager (TASKMGR) I believe everyone is familiar with it, compared to the 2000 features XP is more powerful, the return of the information is more detailed, but do you think there is a lot of hope to get the message is not contained in it? Do you think the things in Windows's System Management Toolbox are too fragmented? Let's take a look at their development principles a
1. Copy the shutdown.exe file in the Windows/system32directory of WINXP to the WINNT/system32 directory of machine 2000, so that 2000 has the XP Smart shutdown Function2. Use Win2000 scheduled tasks and add new tasks to implement timed smart Shutdown3. Note: The command to restart the machine is (shutdown.exe-R)
Benefits:1. tasks that can be automatically restar
1. Write a PHP program named test. php. The content is as follows:
Copy codeThe Code is as follows: $ Fp = fopen ("test.txt", "a + ");
Fwrite ($ fp, date ("Y-m-d H: I: s"). "success! \ N ");
Fclose ($ fp );
?>
The program writes it boldly. It's okay to use include \ require.2. Create a Bat file named test. bat. The content is as follows:Copy codeThe Code is as follows: D: \ php \ php.exe-q D: \ website \ test. php// Change the Directory
3. Create a WIN
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.