Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Update > Batch file to clear temps -- how 2 ???

Reply
Thread Tools Display Modes

Batch file to clear temps -- how 2 ???

 
 
Guest
Posts: n/a

 
      09-04-2005
This looks like a nice easy way to dump the old stuff. But where do I
put it? How do I active it? (I have never created or manually used a
batch file).

Please help me!

<*((((><{




In the last exciting episode on 1 Sep 2005 16:30:41 -0700,
wrote:

>Thank you
>Here is the whole script:
>
>REM Deletes Temporary Internet Files
>
>cd /d c:\Documents and Settings
>for /d %%X in (*) do rd /s /q "C:\Documents and Settings\%%X\Local
>Settings\Temporary Internet Files"
>
>REM Deletes All User's temp files
>
>for /d %%X in (*) do rd /s /q "C:\Documents and Settings\%%X\Local
>Settings\Temp"
>
>REM Deletes Windows and WINNT Temp
>rd /s /q %SystemRoot%\temp\*.*
>
>REM Deletes Microsoft Update files
>
>set unf=%SystemRoot%\$NtUninstall*
>for /f "Tokens=*" %%i in ('dir /B /AD %unf%') do rd /s /q
>"%SystemRoot%\%%i"
>
>set unf=%SystemRoot%\$MSI31Uninstall*
>for /f "Tokens=*" %%i in ('dir /B /AD %unf%') do rd /s /q
>"%SystemRoot%\%%i"
>
>set unf=%SystemRoot%\$NtServicePack*
>for /f "Tokens=*" %%i in ('dir /B /AD %unf%') do rd /s /q
>"%SystemRoot%\%%i"


<*((((><{

 
Reply With Quote
 
 
 
 
MowGreen [MVP]
Guest
Posts: n/a

 
      09-05-2005
Use this if you've no experience running scripts :

CleanUp !
http://www.stevengould.org/software/.../download.html

" # If you have never before used CleanUp!, then please take the time to
read the "Introduction to CleanUp!" section of the Help file. This
describes in detail what files and settings are "cleaned" when you run
CleanUp!. Be sure that nothing here conflicts with your use of your
computer.
For example, CleanUp! attempts to delete files from various temporary
directories (including download directories/caches), as well as emptying
the Recycle Bins. If you make a habit of saving files that you wish to
keep in any of these places, then note that they will be deleted when
CleanUp! is run. Note that it is generally considered poor practice to
use temporary folders or the Recycle Bin to store files you intend to
keep. "

MowGreen [MVP 2003-2005]
===============
*-343-* FDNY
Never Forgotten
===============


<*(((><{ wrote:

> This looks like a nice easy way to dump the old stuff. But where do I
> put it? How do I active it? (I have never created or manually used a
> batch file).
>
> Please help me!
>
> <*((((><{
>
>
>
>
> In the last exciting episode on 1 Sep 2005 16:30:41 -0700,
> wrote:
>
>
>>Thank you
>>Here is the whole script:
>>
>>REM Deletes Temporary Internet Files
>>
>>cd /d c:\Documents and Settings
>>for /d %%X in (*) do rd /s /q "C:\Documents and Settings\%%X\Local
>>Settings\Temporary Internet Files"
>>
>>REM Deletes All User's temp files
>>
>>for /d %%X in (*) do rd /s /q "C:\Documents and Settings\%%X\Local
>>Settings\Temp"
>>
>>REM Deletes Windows and WINNT Temp
>>rd /s /q %SystemRoot%\temp\*.*
>>
>>REM Deletes Microsoft Update files
>>
>>set unf=%SystemRoot%\$NtUninstall*
>>for /f "Tokens=*" %%i in ('dir /B /AD %unf%') do rd /s /q
>>"%SystemRoot%\%%i"
>>
>>set unf=%SystemRoot%\$MSI31Uninstall*
>>for /f "Tokens=*" %%i in ('dir /B /AD %unf%') do rd /s /q
>>"%SystemRoot%\%%i"
>>
>>set unf=%SystemRoot%\$NtServicePack*
>>for /f "Tokens=*" %%i in ('dir /B /AD %unf%') do rd /s /q
>>"%SystemRoot%\%%i"

>
>
> <*((((><{
>

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
batch file help DarthRevan561 Windows Vista General Discussion 6 02-02-2008 12:00 AM
Batch file Bob Windows Vista General Discussion 2 01-20-2008 12:39 PM
Batch file Bob Windows Vista File Management 0 01-06-2008 07:39 PM
batch file calling exe file problem JPS Windows Vista Security 1 12-20-2007 12:18 AM
Need help with batch file n o s p a m p l e a s e Windows Vista General Discussion 11 10-14-2007 06:35 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59