delete all temp files...


Go Back   Computer Help Articles > Windows XP General
User Name
Password
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-05-2006, 02:32 AM
Gordon J. Rattray
 
Posts: n/a
Default delete all temp files...

Hi there,

I'm trying to find something that will delete ALL temp files in the XP O/S
drive in one fell swoop.

There are 5 users on this machine and I have to go into each user to delete
the user temp dirs one by one due to user rights. Even with me as
administrator, I can't use Explorer to delete all temp files from another
user's (with lesser rights) temp folder.

I tried CC Cleaner, but even it's limited to the current user's temp folder.

Any ideas on what I can use or do to clean out all temp files in once
motion?

Thanks,

Gordon


Reply With Quote
  #2  
Old 01-05-2006, 02:32 AM
Pegasus \(MVP\)
 
Posts: n/a
Default Re: delete all temp files...


"Gordon J. Rattray" <gords@shaw.ca> wrote in message
news:%23op%235C%23DGHA.1180@TK2MSFTNGP09.phx.gbl.. .
> Hi there,
>
> I'm trying to find something that will delete ALL temp files in the XP O/S
> drive in one fell swoop.
>
> There are 5 users on this machine and I have to go into each user to

delete
> the user temp dirs one by one due to user rights. Even with me as
> administrator, I can't use Explorer to delete all temp files from another
> user's (with lesser rights) temp folder.
>
> I tried CC Cleaner, but even it's limited to the current user's temp

folder.
>
> Any ideas on what I can use or do to clean out all temp files in once
> motion?
>
> Thanks,
>
> Gordon


How about a little batch file called Cleanup.bat located in this folder:

c:\documents and settings\all users\start menu\programs\startup

@echo off
del /y /q "%UserProfile%\temp\*.*"

Adjust it to reflect the actual folder name you wish to clean out.


Reply With Quote
  #3  
Old 01-05-2006, 02:32 AM
Badger
 
Posts: n/a
Default Re: delete all temp files...

Gordon J. Rattray wrote:
> Hi there,
>
> I'm trying to find something that will delete ALL temp files in the XP O/S
> drive in one fell swoop.
>
> There are 5 users on this machine and I have to go into each user to delete
> the user temp dirs one by one due to user rights. Even with me as
> administrator, I can't use Explorer to delete all temp files from another
> user's (with lesser rights) temp folder.
>
> I tried CC Cleaner, but even it's limited to the current user's temp folder.
>
> Any ideas on what I can use or do to clean out all temp files in once
> motion?
>
> Thanks,
>
> Gordon
>
>

Hi Gordon
Did you try the Costume Folders Option in Crap Cleaner?

--
Badger,

The one who says it cannot be done
should never interrupt the one who is doing it.
Reply With Quote
  #4  
Old 01-05-2006, 02:32 AM
Mak
 
Posts: n/a
Default Re: delete all temp files...

good idea, but there is no temp under %userprofile%, you are missing "local
settings"
it either
del /y /q "%temp%\*.*"
or
del /y /q "%userprofile%\local settings\temp\*.*"

I was thinking somewhere along the lines (note, it's not verified batch, it
is an idea only):
(remove numbers at the beginning of each line)

1 @echo off
2 cd /d "%systemdrive%\documents and settings"
3 for /d %%i in (*) do if exist "%%i\local settings\temp" cd /d "%%i\local
settings\temp" & rd . /s /q
4 goto:eof

but, alas, it won't work til OP fixes his rights first, yours, however will
do the trick once it's corrected.



"Pegasus (MVP)" <I.can@fly.com> wrote in message
news:e0zeQJ%23DGHA.3348@TK2MSFTNGP10.phx.gbl...
>
> "Gordon J. Rattray" <gords@shaw.ca> wrote in message
> news:%23op%235C%23DGHA.1180@TK2MSFTNGP09.phx.gbl.. .
>> Hi there,
>>
>> I'm trying to find something that will delete ALL temp files in the XP
>> O/S
>> drive in one fell swoop.
>>
>> There are 5 users on this machine and I have to go into each user to

> delete
>> the user temp dirs one by one due to user rights. Even with me as
>> administrator, I can't use Explorer to delete all temp files from another
>> user's (with lesser rights) temp folder.
>>
>> I tried CC Cleaner, but even it's limited to the current user's temp

> folder.
>>
>> Any ideas on what I can use or do to clean out all temp files in once
>> motion?
>>
>> Thanks,
>>
>> Gordon

>
> How about a little batch file called Cleanup.bat located in this folder:
>
> c:\documents and settings\all users\start menu\programs\startup
>
> @echo off
> del /y /q "%UserProfile%\temp\*.*"
>
> Adjust it to reflect the actual folder name you wish to clean out.
>
>



Reply With Quote
  #5  
Old 01-05-2006, 02:34 AM
Ron Martell
 
Posts: n/a
Default Re: delete all temp files...

"Gordon J. Rattray" <gords@shaw.ca> wrote:

>Hi there,
>
>I'm trying to find something that will delete ALL temp files in the XP O/S
>drive in one fell swoop.
>
>There are 5 users on this machine and I have to go into each user to delete
>the user temp dirs one by one due to user rights. Even with me as
>administrator, I can't use Explorer to delete all temp files from another
>user's (with lesser rights) temp folder.
>
>I tried CC Cleaner, but even it's limited to the current user's temp folder.
>
>Any ideas on what I can use or do to clean out all temp files in once
>motion?
>
>Thanks,
>
>Gordon
>


Put a batch file to delete the temp files into the Startup group for
each user. That way each one will get cleaned up automatically when
they log in.

deltemp.bat

del %temp%\*.* /s /q


Good luck

Ron Martell Duncan B.C. Canada
--
Microsoft MVP (1997 - 2006)
On-Line Help Computer Service
http://onlinehelp.bc.ca
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete $NtUninstallnnn$ files ? Dany Windows Update 3 01-05-2006 05:09 PM
how 2 delete temp files fr hard drive of wind med player 9 boola Windows Media Player 1 01-05-2006 04:02 PM
Keeping backup of my pictures in my order Gladys222 Windows XP Photos 10 01-05-2006 07:08 AM
Delete Offline Files Robert Korzuch Windows XP Network Web 1 01-05-2006 04:13 AM
delete all temp files... Gordon J. Rattray Windows XP Basics 4 01-05-2006 02:12 AM


All times are GMT. The time now is 12:05 AM.


Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. SEO by vBSEO 2.3.2 © 2005, Crawlability, Inc.

delete all temp files...