In PowerShell: $ENV:Processor_Architecture -eq "AMD64".
In CMD: "%Processor_Architecture%" == "AMD64"
In vbs? I have no idea. Don't use VBS. But given that it's right there in
the environment, I suspect you can get at it easily enough.
HTH
--
Charlie.
http://msmvps.com/blogs/russel
"Alain Bourgeois" <> wrote in message
news:...
> Hi all,
>
> I have install scripts in that modify the sandbox mode of access 2007
> (registry key).
> However, the key to change is not the same in a windows 32bits and a
> windows 64bits.
> ( HKLM\Software\Microsoft\Office\12.0\Access Connectivity
> Engine\Engines] in win32 ->
> HKLM\Software\Wow\Microsoft\Office\12.0\Access Connectivity
> Engine\Engines] in win64 ).
>
> So my question: using vbs, how can I check if I am running win 32 or win
> 64?
> ver command line gives the same for both windows.
>
> Thank you,
> Alain