Hopefully "ScriptingTipsAndTricks" helps you with your batch file or vbscript scripting :-)
[Bottom][Contents][Prev]: Special or Difficult Characters[Next]: WMI (Windows Management Instrumentation)
\->Introduction->64 & 32 Bit Windows Operating System

64 & 32 Bit Windows Operating System

The "PROCESSOR_ARCHITECTURE" environment variable will tell you what mode your program/script is running under.

Sometimes on a 64 bit machine you may need to be sure to execute either under 32 bit or 64 bit mode. On a 64 bit OS the files at "%SystemRoot%\System32" are 64 bit images (although they seem to be able to run in 32 bit mode) and the ones at "%SYSTEMROOT%\SysWOW64" are 32 bit.

You can also see "SysWOW64" in the registry and that also represents 32 bit registry vs 64 bit registry values.

Also see the "ProgramFiles" & "ProgramFiles(x86)" environment variables.


Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.Please email me any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Prev]: Special or Difficult Characters[Next]: WMI (Windows Management Instrumentation)


ScriptingTipsAndTricks© is (C)opyright Dennis Bareis 2003-2008 (All rights reserved).
Sunday September 07 2014 at 12:50pm
Visit ScriptingTipsAndTricks's Home Page
Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.