Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Windows 64bit > vbs to test win version

Reply
Thread Tools

vbs to test win version

 
 
Alain Bourgeois
Guest
Posts: n/a
 
      12-01-2009
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
 
Reply With Quote
 
 
 
 
Dave \Crash\ Dummy
Guest
Posts: n/a
 
      12-02-2009
Charlie Russel - MVP wrote:
> In PowerShell: $ENVrocessor_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.


Set WshShell = WScript.CreateObject("WScript.Shell")
Set WshSysEnv = WshShell.Environment("SYSTEM")
WScript.Echo WshSysEnv("PROCESSOR_ARCHITECTURE")

--
Crash

"Update" and "upgrade" are not synonyms.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Applet to run on Win 98, Win ME, Win XP, Win Vista & Win 7 ?? Krist Java 6 05-06-2010 11:53 PM
Re: vbs to test win version Charlie Russel - MVP Windows 64bit 0 12-01-2009 08:17 PM
Re: Where to get stand alone Dot Net Framework version 1.1, version 2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? PA Bear [MS MVP] ASP .Net 0 02-05-2008 03:28 AM
Re: Where to get stand alone Dot Net Framework version 1.1, version 2.0, version 3.0, version 3.5, version 2.0 SP1, version 3.0 SP1 ? V Green ASP .Net 0 02-05-2008 02:45 AM
test test test test test test test Computer Support 2 07-02-2003 06:02 PM



Advertisments