Freeing up Disc Space Batch

In reply to Scott Hanselmann's post on freeing up disc space I'd like to share a batch that I've written some time ago to clear different temp directories for instance before I run a backup. the referenced file "cleanup.txt" just contains the text "yes" (w/o quotes) to automate the cacls command.   @Echo offfor /f "tokens=3 delims=\" %%i in ("%USERPROFILE%") do (set user=%%i) 2>&1 @Echo on del /F /S /Q "C:\Users\%user%\AppData\Local\Microsoft\WebsiteCache\*.*"del /F /S /Q "C:\Users\%user%\AppData\Local\Microsoft\Windows\Burn\Burn\*.*"del /F /S /Q "C:\Users\%user%\AppData\Local\Microsoft\Microsoft SQL Server Data\SQLEXPRESS\*.*"del /F /S /Q "C:\Users\%user%\AppData\Local\Microsoft\Media Player\Transcoded Files Cache\*.*"del /F /S /Q "C:\Users\%user%\AppData\Local\Temp\*.*"rmdir "C:\Users\%user%\AppData\Local\Temp" /S /Qmkdir "C:\Users\%user%\AppData\Local\Temp" del /F /S /Q "C:\Users\%user%\AppData\Local\Microsoft\Team Foundation\1.0\Cache\*.*"del /F /S /Q "C:\Users\%user%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*.*"del /F /S /Q "C:\Users\%user%\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.Outlook\*.*"del /F /S /Q "C:\Users\%user%\AppData\Local\Microsoft\Windows\Temporary Internet Files\WebTempDir\*.*"del /F /S /Q "C:\Users\%user%\AppData\Local\Microsoft\Windows\WER\ReportArchive\*.*"del /F /S /Q "C:\Users\%user%\AppData\Local\Microsoft\Windows\WER\ReportQueue\*.*"del /F /S /Q "C:\Users\%user%\AppData\Local\Microsoft\Microsoft SQL Server Data\SQLEXPRESS\*.*" del /F /S /Q "C:\Users\%user%\AppData\Local\Microsoft\Media Player\Transcoded Files Cache\*.*"rmdir "C:\Users\%user%\AppData\Local\Microsoft\Media Player\Transcoded Files Cache" /S /Q del /F /S /Q "C:\Users\%user%\AppData\Roaming\Microsoft\Web Server Extensions\Cache\*.*" rmdir  "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files" /S /Qmkdir "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files"cacls "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files" /g "System":F < "D:\Tools\cleanup.txt"cacls "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files" /e /g "Administrators":F < "D:\Tools\cleanup.txt"cacls "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files" /e /g "Network Service":F < "D:\Tools\cleanup.txt" cacls "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files" /e /g "IISWPG":F < "D:\Tools\cleanup.txt" del /F /S /Q "C:\Windows\Temp\*.*"rmdir  "C:\Windows\Temp" /S /Qmkdir "C:\Windows\Temp"cacls "C:\Windows\Temp" /g "System":F < "D:\Tools\cleanup.txt"cacls "C:\Windows\Temp" /e /g "Users":F < "D:\Tools\cleanup.txt"cacls "C:\Windows\Temp" /e /g "Administrators":F < "D:\Tools\cleanup.txt"cacls "C:\Windows\Temp" /e /g "Network Service":F < "D:\Tools\cleanup.txt" del /F /S /Q "C:\Windows\Downloaded Program Files\*.*" rmdir  "C:\MSOCache" /S /Qrmdir "C:\SWSetup" /S /Q pause

New blogger on my Team

A while ago I posted that I and my company were searching for ASP.NET guys... Sergey Shishkin joined newtelligence in March this year and started to blog yesterday. He will do a presentation about a project related to Office Open XML and WinFx he is doing on out next user group meeting (18th May) in Düsseldorf, Germany

RE: Best Job in ...

I can only agree on what Scott Watermasysk says about his job (beside the facts that I live in Germany and it is newtelligence for me ... :-P) [modified]Not only do I work for the best company (newtelligence) in Germany, according to CNNMoney, I also have the best job based on pay, growth, stress, flexibility, creativity, and ease of entry.[...] Why it's great Software engineers are needed in virtually every part of the economy, making this one of the fastest-growing job titles in the U.S. Even so, it's not for everybody. Designing, developing and testing computer programs requires some pretty advanced math skills and creative problem-solving ability. If you've got them, though, you can work and live where you want: Telecommuting is quickly becoming widespread. The profession skews young -- the up-all-night-coding thing gets tired -- but consulting and management positions aren't hard to come by once you're experienced. What's cool Cutting-edge projects, like designing a new video game or tweaking that military laser. Extra cash from freelance gigs. Plus, nothing says cool like great prospects. What's not Jobs at the biggest companies tend to be less creative (think Neo, pre-Matrix). Outsourcing is a worry. Eyestrain and back, hand and wrist problems are common.