|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
"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. |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
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. > > |
|
#5
|
|||
|
|||
|
"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 |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
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 |