views:

36

answers:

1

I want to run some system commands (to fix things) before running an executable. I have a reasonably locked down (work) Windows XP system and so can't change what a shortcut points to. For my users' convenience, I must keep the same shortcut. However, I am able to swap out the .exe (renaming) and potentially replace it with another .exe (of the same name) which runs my system commands and then runs the original .exe.

What would be the easiest and quickest language/compiler to do this in? Previously, I've done this sort of thing in C (and tried it today in Python using py2exe without much success). Preferably free solutions.

A: 

Visual C# 2008 Express Edition is

  • free
  • comes with a compiler
  • outputs exes
  • C# is a good choice if you have C experience
  • .net currently is the "canonical" Windows platform
weichsel