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

Help! Can this file be used to clean computer?

Forum Windows XP : Windows XP General Discussion - Help! Can this file be used to clean computer?

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

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!

Sponsored Links
Register or log in to remove.

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.

Reply to ethaniel
- 0 +

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

Reply to g-paw
Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > Help! Can this file be used to clean computer?
Go to:

There are 1057 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them