Cleaning out temp files


H

Homer J Simpson

How does one purge out the "C:\Documents and Settings\<User Name>\Local
Settings\Temp" directories? As they fill up, the system and many programs
(Outlook Express for one) get slower and slower. I used to do this in
Win98SE via a line in AUTOEXEC.BAT but I doubt that will work now.

N
 
Ad

Advertisements

M

Mak

make a batch.
example:

@echo off
if exist %temp%\nul (
cd /d %temp% & rd . /s /q
) else (
echo.
echo Temp is not defined or folder doesn't exist
echo.
pause
)
GOTO:EOF

be warned that some installations may leave files in TEMP in order to
continue their process after reboot
 
W

Wesley Vogel

Looks to me more complicated than it needs to be.

@echo off
del /q %tmp%

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
M

Mak

not so Wes, few lines in not complicated, besides, yours won't touch
subfolders and files with attributes, but ok, preference of taste.
 
W

Wesley Vogel

You definitely got me on subfolders.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Ad

Advertisements

K

Ken Zhao [MSFT]

Hi All,

Thanks for all of your kindly suggestions!

Thanks & Regards,

Ken Zhao

Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

=====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


Newsgroup Web Interface Upgrade
Please complete a one-time registration process on your first visit to the
Partner Portal beginning July 11, 2005 at 9 A.M. PST by entering the secure
code mspp2005 when prompted. This secure code will be valid for 6 months
after which you will need to update your registration by entering the new
secure code. We will post announcements in the newsgroups prior to
expiration. Once you have entered the secure code mspp2005 , you will be
able to update your profile and access the the partner newsgroups. Please
update your Favorites link to the newsgroups web page, your current link
will redirect until November 1, 2005.
Please post any comment, questions or concerns to the
microsoft.private.directaccess.partnerfeedback newsgroup. For more
information, please go to:
https://partner.microsoft.com/global/technicalsupport/registeredsupport/4001
4662


--------------------
| From: "SeaMaid" <seamaid24-graphics@yahoo.com>
| References: <Rd6Ze.267882$HI.250021@edtnps84>
<#NPtdyQwFHA.2008@TK2MSFTNGP10.phx.gbl>
<#Hene6QwFHA.3588@tk2msftngp13.phx.gbl>
<#pPuUDRwFHA.2312@TK2MSFTNGP14.phx.gbl>
| Subject: Re: Cleaning out temp files
| Date: Sat, 24 Sep 2005 11:54:31 -0700
| Lines: 55
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| X-RFC2646: Format=Flowed; Response
| Message-ID: <OFuumlTwFHA.2172@TK2MSFTNGP10.phx.gbl>
| Newsgroups: microsoft.public.windowsxp.configuration_manage
| NNTP-Posting-Host: adsl-67-126-235-237.dsl.frsn02.pacbell.net
67.126.235.237
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.windowsxp.configuration_manage:14468
| X-Tomcat-NG: microsoft.public.windowsxp.configuration_manage
|
| Try CCleaner. It is freeware.
| http://www.ccleaner.com
|
|
| | > not so Wes, few lines in not complicated, besides, yours won't touch
| > subfolders and files with attributes, but ok, preference of taste.
| >
| > | >> Looks to me more complicated than it needs to be.
| >>
| >> @echo off
| >> del /q %tmp%
| >>
| >> --
| >> Hope this helps. Let us know.
| >>
| >> Wes
| >> MS-MVP Windows Shell/User
| >>
| >> In | >> Mak <nospam@nospam.com> hunted and pecked:
| >>> make a batch.
| >>> example:
| >>>
| >>> @echo off
| >>> if exist %temp%\nul (
| >>> cd /d %temp% & rd . /s /q
| >>> ) else (
| >>> echo.
| >>> echo Temp is not defined or folder doesn't exist
| >>> echo.
| >>> pause
| >>> )
| >>> GOTO:EOF
| >>>
| >>> be warned that some installations may leave files in TEMP in order to
| >>> continue their process after reboot
| >>>
| >>> | >>>> How does one purge out the "C:\Documents and Settings\<User
Name>\Local
| >>>> Settings\Temp" directories? As they fill up, the system and many
| >>>> programs
| >>>> (Outlook Express for one) get slower and slower. I used to do this in
| >>>> Win98SE via a line in AUTOEXEC.BAT but I doubt that will work now.
| >>>>
| >>>> N
| >>
| >
| >
|
|
|
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top