1 using the browser to access the interface address (new Corn.bat file, the contents are as follows)
"C:\Program files\internet Explorer\iexplore.exe" http://www.baidu.com
The front is the path of the browser, need to quote, followed by the interface address to be visited, without quotation marks
2. Because it is a PHP project, execute the interface by invoking the PHP file (also ready for the bat file and the interface file)
The bat content is as follows:
PHP File Content Example:
<?php//1, execute function//2, access to a ur; Direct file_get_contents ("URL"); >
2. Open Control Panel \ All Control Panel items \ Administrative Tools \ Task Scheduler
Fill in the Task name
Set Execution time
Select Startup program
Finish saving
Create a successful test run and view the results
Description: A shopping mall project needs to automatically receive orders for 7 days of receipt, so think of scheduled tasks. But after writing the interface, do not know what to do. Small white dare not abuse sleep, so found a plan task this thing.
In addition, about the automatic receipt of the implementation method, the use of the call interface time and delivery time difference, in fact, the better way is to pick up a courier API, and then according to the status of the courier to determine the time.
Finally, if there is a better way to achieve, hope to enlighten! Thank you
"PHP" Window System set up scheduled tasks, timed to call an interface