Image manipulation in VBScript

Four guys from RollaI was working on a script the other day at work and came upon the need to determine the dimensions of some images. Because the script was being written in VBScript, I was basically stumped, since, although I’ve figured out a great deal about simple scripting in VBScript, I’m still an absolute novice when it comes to file manipulation and the more advanced features available.

I hit the Web and started googling. Luckily, I came across a great solution on one of my first tries. The Four Guys from Rolla (which, if you’re working with VBScript and haven’t bookmarked this site, yet, I highly recommend it – they seem to be the number one authority on VBScript) offered a great tutorial, with code, explaining how to obtain the dimensions and a lot more information from any image.

Export to Excel with VBScript

I’ve seen a lot of articles on the Internet explaining how to export a page to Excel using VBScript. Unfortunately, they all seem to have problems in their methodology.

Many of the articles are helpful, but they don’t seem to include all of the information you need in order to export HTML content successfully from a VBScript page into an Excel document.

I’ve finally found a method to successfully export my data to Excel, and I hope it will help some of you, too.

Rewrite and Redirect for IIS – Sort of

Last week at work, we unveiled one of the new Web sites I’ve been working on for a while.  In doing so, we removed the old Web site completely from the server and replaced it with the new site.

Of course, when we did so, a lot of our old links became obsolete, so I had to find an effective solution to keep our regular visitors from going bananas when they tried to access some of their favorite pages.  That’s when I began to look into some options for redirecting without having to create placeholder pages just for those redirects.  After quite a few fruitless searches, I was able to piece together a fairly good solution, and also discovered an easy way to achieve URL rewriting on an IIS server (similar to the way you would with htaccess on an apache server).

First, you need to set up your “404” so that it points to a VBScript page.  That’s the most important part.  Once you’ve got that done, navigate to a page that you know does not exist on your server, just so you can test the behavior of your 404 page.