Running 32bit dependent scripts in a 64bit world

As seen earlier, it can be problematic to run scripts which rely on 32bit COM objects on a 64bit platform. To make things easier, I wrote basic some script code to detect that the wrong scripting host was run and fork out to the correct one. This just uses a variation of the “detect cscript…

1

Automating Large Image Conversion with Photoshop

So fairly recently, I’ve merged my fascination with extremely large images with my fascination of fractals. The output of which was a handful of BMP files, some of which happen to be 18000 by 18000 pixels. To give you some perspective, that’s a 324 megapixels image (or ~309 megapixels for those of us who still…

0

Validating a company email alias with Outlook

Most of the process related tools we use (bug databases, work items, test cases, etc), will keep track of owners by their email alias. Unfortunately, if someone’s alias changes (such as transitioning from contractor to Full Time) or they leave the company, then items assigned to them become orphaned. Using the Outlook COM interface, we…

1

Automating DOC to PDF Conversion

The COM object model exposed by Microsoft Word gives us the power to save any document which Word can recognize into a PDF file (as long as you’ve downloaded and installed the XPS and PDF exporter first). And it turns out that programmatically converting between a document and a PDF file is a pretty simple…

1

Automating GIF charts from Excel

Using the COM object model exposed by Excel, we can programmatically open files, generate graphs, and save them as stand-alone image files.   Handily, the functionality provided by Excel gives us a simple way to generate charts and graphs when you need something easy and automatable. This is great for creating visualizations for automated reports,…

0

Running JScript in a CMD File

I do a lot of work from a command shell and this is a little hack that I threw together to avoid having to type out “cscript” every time I wanted to run some specific JScript (aka JavaScript) file. Using some arcane aspects of the two languages, it is possible to embed the JScript code…

4

Leak Tracking with PowerShell

One of my holiday tasks was to learn some PowerShell. While reading/skimming through a book on the subject, I decided to create a quick script which would track memory utilization for a given application. In the past I’ve used a stand-alone application which would take a snapshot of all the processes and dump out the…

1