How do I check if wscript/cscript runs on x64 host OS?
问题 I'm running a VBScript that may run under x64 Windows. I need to read a registry key from the 32-bit part of the registry. For that I use path HKLM\Software\Wow6432Node\xyz instead of HKLM\Software\xyz . How can I check if the script is executed under x64? 回答1: I'm not sure you need to check if the script is executing under x64. Try to read from HKLM\Software\Wow6432Node\xyz , if that fails, try to read from HKLM\Software\xyz , if that fails, your registry key doesn't exist, take whatever