Tuesday, March 28, 2006

Script-based Internet Connection Scheduling

A slightly smaller version of this blog has also been posted here by me, so as to benefit more people who don't know about this blog.

Most people who have BSNL Dataone Broadband( or any other Nighttime Unlimited Downloads for that matter), would love to download good stuff from the net at night.But they just can't imagine or bear getting up at 2:00 AM to start downloading some high bandwidth stuff(wink), then here's relief for your sleepy eyes!

This procedure has only been tested on WinXP, so if you're on Win98 or something else, maybe this might not work. I haven't tested it out, as I don't have Win98.
If someone can test this out and write a comment on this blog, they're welcome.

The entire idea is to use Windows Task Scheduler to automate our connection and downloads.

You can access Windows Task Scheduler like
Start->Programs->Accessories->System Tools ->Scheduled Tasks.

Create a new scheduled task called Connect and type in the following line
rasdial "BSNL" yourusername yourpassword.

(here "BSNL" is the name of your BSNL Network connection. Quotes are useful if you have spaces in the connection name)

create a new scheduled task called Disconnect and type in the following line
rasdial "BSNL" /disconnect

do as below for all scheduled tasks:

In case you do not have a password set for your Windows Login, right-click on the scheduled task, go to properties, and check the "Run only if logged on" option.(this is to stop windows from prompting for your non-existent password when starting the task).

Also, in the Settings tab, check the "Wake the Computer to run this task" option.

In case you have power conservation enabled, goto Control Panel -> Power Options -> Advanced Tab and uncheck the "Prompt for password when computer resumes from Standby".

Now schedule Connect task for 2 am, and Disconnect task for 8 am respectively through Windows Task Scheduler(Start->Programs->Accessories->System Tools ->Scheduled Tasks).

Now just schedule your favourite P2P app( recommended: Emule, Bitcomet) for 2:01 am.

If you want to automatically shutdown your PC at 8 am, schedule this command as shown above, for 8 am
shutdown.exe -s -t 60 -c "Shutting down your PC"

Enjoy!!!

No comments: