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


I just got "tagged" together with Steve, Don, Udi and Nicholas  by Clemens. So here are my five: The nickname "Lennybacon" was given to me by my girlfriend and is (probably) based on my middle name "Leonard" and the fact that I like bacon for breakfast. My surname is written without a "c" which is quite strange for most Germans (beside my certificate of birth about 80% of the official documents spell me the wrong way). The English way of spelling is because of my father who is an American and his forefathers who came from England.I started working with computers beside school and administered Novell and NT Networks. I programmed my first Windows application in 1996 using Delphi. At this time I still wanted to become a Carpenter. The only reason I did not become one is that in that company they started to drink alcohol at 8 o'clock (work started at 6). The oldest piece of a computer I own is a 15x15x0.5 inch disc with 4 MB storage. It was a present from a customer and given to me after finishing a project. And the Oscar Tag goes to: Michael, Thomas, Kenny, Bob and Craig

Playing with the Windows RSS Platform

Microsoft introduces with Vista/IE7/Office2007 the Microsoft RSS Platform - For some reasons my IE is not able to export the feeds that I read in IE7 and Outlook 2007 to OPML.I had a look at the API and wrote this small console applictaion to export my feed list to the OPML format. using System; using System.IO; using System.Runtime.InteropServices; using System.Xml;   using Microsoft.Feeds.Interop; using System.Collections.Generic;   namespace RssWindowsPlatformOpmlExporter {     class Program     {         static void Main(string[] args)         {             string pathToExport = "D:\\temp\\feeds.opml";             if (args.Length > 0)             {                 pathToExport = args[0];             }               FeedsManager mgr = new FeedsManager();             Queue<IFeedFolder> queue = new Queue<IFeedFolder>();             queue.Enqueue(mgr.RootFolder as IFeedFolder);               while (queue.Count > 0)             {                 IFeedFolder currentFolder = queue.Dequeue();                 IFeedsEnum subFolders = (IFeedsEnum)currentFolder.Subfolders;                   for (int i = 0; i < subFolders.Count; i++)                 {                     queue.Enqueue((IFeedFolder)subFolders.Item(i));                 }                   using (XmlWriter opml = XmlWriter.Create(pathToExport))                 {                     opml.WriteStartDocument();                     opml.WriteStartElement("opml");                     opml.WriteAttributeString("version", "1.0");                       IFeedsEnum feeds = (IFeedsEnum)currentFolder.Feeds;                     for (int i = 0; i < feeds.Count; i++)                     {                         IFeed feed = (IFeed)feeds.Item(i);                           try                         {                             if (!string.IsNullOrEmpty(feed.Title)                                 && !string.IsNullOrEmpty(feed.DownloadUrl))                             {                                 opml.WriteStartElement("outline");                                 opml.WriteAttributeString("title", feed.Title);                                 opml.WriteAttributeString("xmlUrl", feed.url);                                 opml.WriteEndElement();                             }                         }                         catch (COMException e)                         {                             Console.WriteLine(                                 "Error getting feed: {0}",                                 e.Message);                         }                     }                       opml.WriteEndElement();                     opml.WriteEndDocument();                 }             }         }     } }

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

We're looking to hire solid ASP.NET developers - If you think you gots the skills to hang with us submit your resumes.

newtelligence AG ist ein führender Provider für Softwareentwickler-Services mit Standort in Korschenbroich, Rheinkreis Neuss. Wir unterstützen unsere Kunden in Europa mit Beratung, Architekturentwürfen und –reviews, Coaching, Projektbegleitung und Workshops im Bereich der Microsoft .NET-Technologien.  Wir suchen talentierte Junior Developer mit professioneller Erfahrung für unser Team von Beratern, Trainern und Entwicklern. Wenn Sie auf mindestens ein Jahr Erfahrung in kommerzieller Softwareentwicklung verweisen können und tiefgehende Kenntnisse im Bereich der Microsoft .NET-Plattform haben, möchten wir Ihnen gerne unsere offenen Positionen im Bereich Consulting und Kleinprojekt-Entwicklung vorstellen. Kenntnisse sind insbesondere in den Bereichen ASP.NET (C# oder VB) erwünscht. Erfahrungen in den Bereichen Web-Services, Life-Cycle-Tools sowie in COM, VB und Datenbanken sind von Vorteil. Was wir noch erwarten: Sehr gute Kommunikationsfähigkeiten in Deutsch und Englisch (schriftlich wie mündlich) Sowohl Teamfähigkeit als auch selbständiges Arbeiten unter minimaler Anleitung Verantwortungsbewusstsein Flexibilität Reisebereitschaft Belastbarkeit