I needed a batch file to copy a different DLL depending on the processor architecture (one for x86 and one for x64).
Using the environment variables PROCESSOR_ARCHITECTURE did the trick.
- http://blogs.msdn.com/david.wang/archive/2006/03/26/HOWTO-Detect-Process-Bitness.aspx
- http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/Q_21623630.html
echo %PROCESSOR_ARCHITECTURE%