Saturday, December 6, 2008

Export MIME Types from IIS

I know that my latest posts are slightly “off-topic” from my passion, the .NET Framework, but I’ve been working with other products that can still tickle my brain.

Now, I usually don’t share “my homework” or “personal developments”, but this might actually be useful at work for some of you. It’s quite simple: the idea is to export all the MIME Types registered in IIS. Furthermore, you can generate an HTML page (with style sheet) from the exported MIME Types. The instructions are in the ZIP provided below. The package contains 4 files:

      1 – MIMETypesVBScript.vbs: the VBScript that will get the MIME Types from IIS. Note that if you are using the script on a remote server (through remote desktop, VPN, whatever), you might need special permissions to execute it.
   2 – MIMETypesXSL.exe: the executable that will perform the XSL transformation to generate the final “styled” HTML page.
      3 – MIMETypes.XSL: The file that will apply the style. Feel free to develop your own.
      4 – Readme.txt: Instructions on “how to get things working”.

As I said, the instructions are in the Readme file. I know it isn’t a perfect method, but it was the quickest I could remember. You can download the ZIP file here.


0 comments: