• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

why can't windows just move all the files it can?

Page 3 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.
Originally posted by: djheater
Originally posted by: MaxDSP
Originally posted by: djheater
Originally posted by: MaxDSP
Originally posted by: djheater
Originally posted by: MaxDSP
would this work?

FOR /f %%e in ('DIR /b "C:\Documents and Settings\<user>\Local Settings\Temporary Internet Files\*.*"') do ( DEL "C:\Documents and Settings\<user>\Local Settings\Temporary Internet Files\%%e")

Change <user> to the username and enclose your spaced dir names in quotes as above. There's no need for the logging on this..
I just wanted to give the OP an idea of the porn he'd need to replace.

It should all be on one line... btw

sweet, thanks


Let me know if it works 😉


I'm done with del crap today...just cleaned like 3 machines today the hard way. Will try this tomorrow maybe


If you want to be really crazy you can try this:
FOR /f %%e in ('DIR /b "C:\Documents and Settings"') do (
FOR /f %%p in ('DIR /b "C:\Documents and Settings\%%e\Local Settings\Temporary Internet Files\*.*"') do (
DEL "C:\Documents and Settings\%%e\Local Settings\Temporary Internet Files\%%p")
)

This will fill in all the user names from the Documents and Settings folder, as long as they don't contain any spaces (It'll fail/skip 'All Users' for example). That way you can kill all the files for every user on the machine at once.

PS... you'd probably get into trouble if you tried it on a mchine with more than 10 user profiles. your variables would start to overlap....


Well, these aren't shared machines, it's one per user. So I have to physically (or through remote) run the batch file on each machine, prolly over 70 users...🙁
 
Back
Top