You have mentioned "i have to replace a battery" and then you have mentioned "my laptop goes off after every 2 hours". Is the computer shutting down when you are running it only on battery? Or the problem happens when running only on AC Adapter? Or when running on both?
Please do write back to us.
To know more about Dell's products, services and drivers & downloads, please go to http://dell.to/YBlak6