Batch files?

Not sure if you can use 'em in WinXP+ but you can still use 'em in Win2K.

Or knock up a quick utility in VB or something, if you can be bothered and have the time / software / experience.