Cron is name of a tool in Unix based operating systems. Cron is a time based scheduler which helps to run specific command on a specific date and time. Basically it used for automation of a service or software. For instance in a web application,if the developer want to send an email to the users everyday, this action can be automated using Cron jobs. Otherwise somebody need to call (run) the webpage everyday. In Linux server, user simply write a PHP webpage for sending the email and ask Cron to run it everyday on a specific time.
Now the problem with windows is that, you don't have access to Cron. But no worries here in this article we will teach you how to simulate the Cron in Windows environment.
- First, right click on your favorite browser icon, and select properties.
- Second, copy the address in "Target" field.
- Next, open the notepad and paste the address that you copied in middle of pair of double quotation signs.
- Then, add a white space, and write the address of your PHP/ASP page which you want to run on a spspecificchedule in middle of pair of double quotation sign. (example below)
- "C:\Users\User\AppData\Local\Google\Chrome\Application\chrome.exe" "http://localhost/myproject/send_mail.php"
- Now, save the file with your desire name but with ".bat" extension. for instance cron.bat
- Go to "Control Panel" and open "Schedule tasks".
- Click on "Create Basic Task"
- Chose a name for your task (example: "SendMail Cron") and click Next.
- Chose the timing schedule for the calling of the web page. And click Next.
- In "Action" part, chose "Run a program" click next.
- Now select the batch file which you created sooner (ex "cron.bat")
- Finish
Now "Windows task scheduler" will run the batch file ("cron.bat") on that specific date and time which you adjusted. Consequently the batch file call your browser with the address of the web page which should be run.
Just saying thanks will not just be sufficient, for the fantasti c lucidity in your writing. I will instantly grab your rss feed to stay informed of any updates. windows 10 bsod
ReplyDeleteThis is also a very good post which I really enjoyed reading. It is not every day that I have the possibility to see something like this..
ReplyDeleteJobs
Really appreciate this wonderful post that you have provided for us.Great site and a great topic as well i really get amazed to read this. Its really good. need job fast
ReplyDeleteFor instance, you may incorrectly or inadequately put shims on Window replacement the windows, which may result to the wind, rain or snow to get in quite easily.
ReplyDeleteThis particular papers fabulous, and My spouse and i enjoy each of the perform that you have placed into this. I’m sure that you will be making a really useful place. I has been additionally pleased. Good perform! Cheap CRM
ReplyDeleteThis is a smart blog. I mean it. You have so much knowledge about this issue, and so much passion. You also know how to make people rally behind it, obviously from the responses. VoiceofNigeria.org.ng
ReplyDeleteI wanted to thank you for this excellent read!! I definitely loved every little bit of it. I have you bookmarked your site to check out the new stuff you post. read more
ReplyDeleteThe best article I came across a number of years, write something about it on this page. https://oomnex.com/catalog/butt-lifting-machines
ReplyDeleteThis is very significant, and yet necessary towards just click this unique backlink: Elite
ReplyDeletePretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info. security company Singapore
ReplyDeleteI'm glad to see the great detail here!. https://birthdaypartyplanner.co.in/
ReplyDeleteIn any case, while I got follow up messages, I didn't get any annoying calls or spam identified with the test. spell germaine
ReplyDeleteI adore your websites way of raising the awareness on your readers. Ramen Antwerpen
ReplyDelete