Skip to main content

How I fixed the CMOS baterry time & date issue


As CMOS battery in my PC got rotten my system won't boot, unless I press F1. Then I try to access the internet, Google wont open as it sights security risk! that's the first time I realized my PC date & time is getting reset to 01-01-2004 12:00:00 AM cause of this battery problem.



The simplest way to fix this would have been to replace the battery. But I'm really afraid to touch anything in my decade old PC as it is running on the power of Karma not by the virtue of power cord. So I was using it as such like pressing F1 every time to boot and then later setting the time using the clock. Slowly this boring ritual started to irritate me and then I thought "hey I'm a techie let me find some good way".






Automation it is! The only development work I do in my office is when I get a work item on "automation". So I simply wrote a 5 line batch script and placed it in the start up. Now when Desktop opens a Command window pops up asking "enter time and date" cool ah! watch the picture here. >




@echo off
echo "Enter time as hh:mm:ss AM/PM eg. 07:53:06 AM"
time
echo "Enter date as MM-DD-YYYY eg. 12-31-2013"
date

The code is for Windows XP check this wikihow entry for other OS.

Popular posts from this blog

Up and Close with Sudalai Madan: The Encounter

Night of 13th April all the preparations for the rituals were done in the temple, Sudalaimadam swamies idol was decorated with flowers and fruits and coconuts dedicated to the lord reached above his chest.My cousin Sudalai muthu, senior priest of the shrine reached home by late night got blessings of his father Late Shanmugam Sundaram and blessed the family members in 8x10 room dedicated for God, then started towards the temple. There peoples in huge number were waiting for the Sudalaimada swamy's arrival. Different rituals were offered by people to the Lord in order to get the blessings. As its is believed Sudaimada swamy, son Lord Siva used to consume meat in Kailash for this reason he is sent to earth were he can satisfy his earthy hunger there by not polluting Kailash.



Offering meat to Sudalaimadan is the most important and an watchful event in the festival. Many devotees offer their goat & pig so as to please the lord and get his blessings. That midnight Sudalaimada swamy …

Training @ Cognizant

I received my Date of Joining mail on 16 Oct 2011, I was so happy that finally I got that. I was the only one from my college to get the mail to report on that particular day so I went pretty much alone. I reported in MEPZ on Oct 20th from the next Monday my training began in Siruseri. I was able to spot many people who studied with me in school on the first day of Induction.
Initially I was placed in customized batch then was moved to Advance JAVA or J2EE in a generic term. I got pinned to IME vertical that handles clients related to Information, Media and Entertainment domain.We were trained in batches of 24, curse or charm I got into a batch with 20 girls! Whatever it didn't last for long, I was pretty much comfortable after getting out of it. My school was co-ed but classes were separate for boys and girls never mind 8th and 12th grades, where I was put into co-ed classes because I'm a good boy :P In college I remember studying together with girls nope remember seeing girls…

why do people sweat more in chennai???

One of the famous ornament of chennai is its summer!. Everyone here would have at least once talked about its effect and the way they affected. People comes out with sweats flowing from the body is the usual scene of chennai noon. The sweat produced is not just due to the temperature of the region. It is in fact due to the high humidity of chennai.

To explain this lets see a fact, people in chennai sweats more than the people in delhi where the temperature is higher than the former.

This is because of chennai's location. Chennai is located near sea due to which sea water evaporation is high during summer which in turn increases the humidity (Amount of water vapour present in air).
Normally human blood temperature is about 35 deg Celsius. If the outside temperature is more than that, then our system tries to automatically cools down by releasing sweat from the body.

The sweat which is released cools the surrounding heat by converting into vapour thereby reducing the body temperature…