I'm setting up a portable development environment. I'm trying to get the bitness of the current system my flash drive is plugged into (32 or 64) from a batch file, so I can use the correct version of my IDE.

This article is a start: <http://support.microsoft.com/kb/556009> but it uses a relative address, and of course my flash drive doesn't have an OS so the code defaults to i586 every time.

What's the LOC I need to do this?