Forgot Password / Register
Site Statistics
Total Members: 520
Total Tutorials: 242
Newsest User: 8884244477
Todays Unique Hits: 454
0 Users 2 Guests Online

Cronjobs in windows

Okay, this tutorial will show you how to make cron jobs in Windows.

First off go to
Start -> All Programs -> Accessories -> System Tools -> Scheduled Tasks

TutorialNinja Image

After that opens Click Add Scheduled Task then hit 'Next'

When it asks you for a program to open with Find your Internet Explorer or FireFox exe file then hit next.

TutorialNinja Image

Give it a unique name in which you will remember, and also select a time period to run this task before hitting next.

Select time of day and when to start operating this task then click next once more.

Next, you will have to enter a username to use along with a password in case your computer is not logged in it will be able to log in and execute the required task.

TutorialNinja Image

After clicking next check the box with the label 'Open advanced properties when i click Finish' Then go ahead and hit Finish.

After clicking finish your screen should look something like

TutorialNinja Image

After all the text within the run box add a space then the link to your cron file which should be run.

Ex:
Code

C:\PROGRA~1\INTERN~1\IEXPLORE.EXE "http://www.example.com/folder/execute_this_file_whenever.php"


Of course making sure you have some sort of lock on the file so outsiders can not go in and execute when ever they want x]

So, now that you have that done you can click Apply then go ahead and close out of that window.

Now, after a few times of running you will figure out that it will not close internet explorer so you will want to make another task to run shortly after that one so it will exit the program.

Open notepad and type the following:
Code

tskill firefox/iexplore
exit


firefox obviously for closing firefox and iexplore for internet explorer.

Save that as a .bat file somewhere safe so that the task will run it and close out and save you from having 50 windows of 1 thing open at a time x]

I hope this helped!
ShadowMage
Author:
Views:
2474
Rating:
Posted on Tuesday 22nd April 2008 at 08:22 PM
ShadowMage
ShadowMage
thats what i was thinking but didn't work :P
Posted on Monday 21st April 2008 at 05:06 AM
darklight19
darklight19
Can't you just use php.exe? o_O