Ad
News

Kama Sutra e-mail virus primed to strike on Feb 3

Published on February 02, 2006

Important information stored on home computers could be wiped clean by an e-mail virus called Kama Sutra that is timed to strike today. Read more

Apple's in the eye of flaw finders

Published on February 17, 2006

At the recent ShmooCon hacking conference, one security researcher found out the hard way that such venues can be hostile, when an unknown hacker took control of the researcher's computer, disabling the firewall and starting up a file server. Read more

Sound blaster cleans contaminated soil

Published on September 07, 2006

Soil polluted by organic toxins can be blasted clean with ultrasound, say researchers in Australia. The method may prove to be more effective at cleaning up contamination from oil refineries, power stations and aluminium factories than existing methods. Read more

Computer helper speeds neuroscience experiments

Published on August 22, 2006

A computer system that monitors the behaviour of simple creatures for neuroscience experiments could ultimately help scientists develop new drugs, researchers say. Read more

Latest Reviews & Articles

4GB Gets Cheap: 9 Dual-Channel Kits Compared

Published on December 01, 2008

Recent price drops have made 4 GB DDR2 dual-channel kits affordable for even the most cost-conscious buyers. We pushed nine models to their limits to determine best value for a broad range of users. Read more

System Builder Marathon: Performance & Value

Published on November 28, 2008

We tightened the budget on this month’s enthusiast-level system while loosening our belt for the low-cost gamer box by a similar percentage. Today we gauge the effect of these changes on performance and value and compare to last month's machines. Read more

System Builder Marathon: $1,250 Enthusiast PC

Published on November 27, 2008

On this, the second day of our System Builder Marathon, Don turns down the price tag of his mid-range build looking for a sweet spot just above the $1,000 marker. Let's see what sort of hardware he found for it! Read more

System Builder Marathon: $625 Gaming PC

Published on November 26, 2008

This month's System Builder Marathon is all about your feedback to us. We've revamped our entry-level and mid-range PCs with new price points. Let's kick things off with what we think is the best value at a $625 price point! Read more

  Tom's Hardware Forums » Windows XP » Windows XP General Discussion » Help! Can this file be used to clean computer?
 

Help! Can this file be used to clean computer?




Word :   Username :  
 
Bottom
Author
 Thread : Help! Can this file be used to clean computer?
 
Profile: member
More Information

Hi all,

My dad saw this thing written out on another forum that said the following commands typed in notepad as a .bat file can help clean your computer. It seems like it clears out the temporary internet files and temp, but there are some that I don't know so I was wondering if anyone of you know. Well, here it is:

@echo off
echo
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
echo
echo. & pause


So do you think this thing can be used?

Thanks!

Related Product

Register or log in to remove.

Profile: journeyman
More Information

You could get a lot of "denied access" errors. You can purge cookies and Internet temp files the right way by using "internet options" in the control panel. Killing all the logs in a drive is not a good idea, some of them can get you out of a problem. And purging the Recycle Bin thru a command prompt is an overkill. I'd stick to deleting everything in "C:\Windows\Temp" and "%userprofile%\Local Settings\Temp\*.*", but some files can be in use, so you can't delete them.

Profile: Eternal Poster
More Information

You could also use a free program like CClean to clean things out. Running in Safe Mode under the Administrator log in will get the most stuff


  Tom's Hardware Forums » Windows XP » Windows XP General Discussion » Help! Can this file be used to clean computer?

Go to:
 

Google Ads