I'm pretty sure you can simply pass `vcvars32.bat` to *cmd*; you don't need to use *which* to get an absolute path to it.