After reading the Admin's post, I too have created another script for DSL-502T router using autohotkey.
THIS SCRIPT IS STRICTLY FOR DSL-502T ROUTER OF D-LINK THAT IS PROVIDED BY MTNL.
1] Install
Autohotkey
2] Create a new folder where ever you want. Right click inside it > New > Autohotkey script.
3] Edit this new file using notepad or any other word processor and enter the following script. Only enter the red coloured text.
Run telnet.exe
WinWait C:\WINDOWS\system32\telnet.exe
WinActivate C:\WINDOWS\system32\telnet.exe
Send o{SPACE}192.168.1.1{ENTER}
Sleep 2000
WinActivate Telnet 192.168.1.1
Send admin{ENTER} [Enter your logon id here in place of admin]
Sleep 2000
WinActivate Telnet 192.168.1.1
Send admin{ENTER} [Enter your logon password here in place of admin]
Sleep 5000
WinActivate Telnet 192.168.1.1
Send reboot{ENTER}
Sleep 70000
WinActivate Telnet
Send a{ENTER}
Sleep 2000
WinActivate Telnet
WinClose Telnet
4] Save the file, and name it
rebootmodem.ahk
5] Go to Start Menu>Program files>Autohotkey>
Convert .ahk to .exe
6] Under source file browse and select the script you just wrote named
rebootmodem.txt
7] Under destination file browse to the folder you created and TYPE
rebootmodem.exe
8] Click on
>Convert<
9] Now open the Scheduled Tasks window from system tools in your start menu or from your control panel.
10] Schedule the task to run
rebootmodem.exe every day at 7:45 am, enter your Windows login password when prompted and verify it.
11] Now a new task will appear in the scheduled tasks folder called
rebootmodem. Rename it to
Morning.
12] Create another task and set it to 12:15 am and schedule it to run everyday, enter your windows login id and password when prompted.
You are all set now.
13] Remember to set your firewall to allow
rebootmodem.exe to access the router.
For those who wish to avoid all that hassle just download the following
file. Then schedule it to run in the morning and at night when required.
Credit: The admin for the idea.