vbs to test win version

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
0
Alain
12/1/2009 7:53:20 PM
windows.64bit.general 524 articles. 1 followers. Follow

2 Replies
1046 Views

Similar Articles

[PageSpeed] 52

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" <brolspam00@skynet.be> wrote in message 
news:4B157430.62DC3D38@skynet.be...
> 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 

0
Charlie
12/1/2009 8:17:26 PM
Alain,
There's some interesting stuff here:
http://stackoverflow.com/questions/601089/detect-whether-current-windows-version-is-32-bit-or-64-bit
Examples in Delphi and C# are given.
It seems that testing the presence of environment variable %ProgramW6432% 
defines and x64 system.
If it ain't there, then it is an x86 OS.
Carlos

"Alain Bourgeois" wrote:

> 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
> .
> 
0
Utf
12/1/2009 11:14:01 PM
Reply:

Similar Artilces:

Where can I find how to use Excel 2007 to grade tests?
I would like to set up Excel worksheets that correlate to tests I give my students. Each question would have a statement that would be given for a correct answer and a statement given for an incorrect answer. Once he worksheet was built all I would have to do is input the student's answers. For every correct answer Excel would supply the corresponding statement, and do the same for any incorrect answer given. Right now I am hand-building the report for each test given to each student and it simply takes too long. Dale, Your description of what you want to do is a bit sketchy, but y...

test sohail
test from sohail �������һ�������ϵĺö�����http://shop.paipai.com/376512972���Ƽ�ȥ����Ŷ��^-^ ��ҵ��Mycool��ĺ�����,ȫ���绰���Ŷ! "sohail" <sohail009@yahoo.com> д����Ϣ news:%23fyXD44cIHA.4968@TK2MSFTNGP02.phx.gbl... > test from sohail > "sohail" <sohail009@yahoo.com> schrieb im Newsbeitrag news:%23fyXD44cIHA.4968@TK2MSFTNGP02.phx.gbl... > test from sohail > "distore" <distore@sina.com> д����Ϣ����:umBqMA5cIHA.536@TK2MSFTNGP06.phx.gbl... > �������һ�������ϵĺö�����http://shop.paipai.com/376512972���Ƽ�ȥ����Ŷ��^-^ >...

this is just a test
...

eConnect 10.0 SDK (version prior to SP1 & SP2)?
Hi All, I am reposting this question, as I am yet to succeed in finding the correct link to this download. I need eConnect 10.0 SDK, version prior to SP2, since SP2 require the basic version to be present. And I do not have this installed. I checked PartnerSource, but it is leading me to SP2 install page. I sincerely hope someone assist me in finding the correct link in PartnerSource. -- Regards, Vaidy https://mbs.microsoft.com/customersource/downloads/servicepacks/eConnect10DownloadsforMicrosoftDynamicsGP10.htm "Vaidy" wrote: > > Hi All, > > I am repostin...

Using Crystal Reports with CRM version 3
In the book Working with Microsoft Dynamics CRM 3.0, on page 304, it talks about being able to extend CRM to work with 3rd party reporting tools. Has anyone done this with Crystal reports? If so, would you mind giving me some pointers, and let me know of any gotchas? I have found so many things that are either really painful to do or are impossible to do with SSRS, that I'm having to run Crystal reports (because I'm the only one who has the software) for my users. Thanks... Can you hightlight some of the things you cant do in SRS? ============================== John O'Do...

Testing for an Integer result in a formula
I'm writing a nested IF statement in which one step needs to test the value of one cell divided by another cell, and determine if it is an integer before it completes the calculation. So, IF cell R10 / I13 = INTEGER, then I'll perform a Future Value calc. IF NOT = I want to do nothing. I tried ISEVEN, but when I turned on the Analysis Took Pak nothing happened. My spreadsheet still did not recognize the ISEVEN. Suggestions please? -- Jerry G Try this: =3DIF(INT(R10/I13)=3DR10/I13,"integer","") Hope this helps. Pete On Dec 4, 3:23=...

Eliminating the Version Incompatibility in COM
Hi all, I am have two questions with me. 1) Can anybody explain how exactly how we are eliminating the Version Incompatibility in COM.which were their in C++ DLL. 2) I have developed a COM.dll. let us assume version for the dll as( ver 1.0.0.0) Now I have updated with some existing virtual functions parameters and adding some more New Virtual functions. Means I have to change my Version dll so version as( ver 2.0.0.0) Here my big concern is: we having two dlls so which dll would be in my process aria. Programmatically what are the statements we have to add in code, if we are going to have...

Quest 1 for testing purpose
Quest 1 for testing purpose Ans1 "Vigneshwaran Sivakumar (Wipro Ltd.)" <v-vsivak@microsoft.com> wrote in message news:8265CFD9-9FED-43D4-8813-F52C19C63BA6@microsoft.com... > Quest 1 for testing purpose > ...

Basic skills testing
Hi, We want to assess in no more than 30 minutes the basic Excel skills of some members of staff, this will hopefully then determine the areas we need to provide training. Does anyone know of some on-line testing examples that I might use? Thanks, Rob ...

Serializing a class and not get the "?xml version"
I am using the xml serializer to serialize the objects out of a collection into a file. The object that is being serialized is a class in my application. When I serialize my class it produces the following line. <?xml version="1.0" encoding="utf-16"?> for each instance of my serialized class. Thus giving me the following output. <?xml version="1.0" encoding="utf-16"?> <Message> .... </Message> <?xml version="1.0" encoding="utf-16"?> <Message> .... </Message> I just want the following &l...

Are there any page setup differences between Excel versions
I have created a spreadsheet on Excel 2000 and set up the pages to print correctly. My colleage is using a later version of Excel and is having page setup difficulties with my spreadsheet Your workbook should not be causing difficulties with Page Setup. What page setup difficulties is she having? Is she able to open Page Setup? Use its settings? In article <BF83F39B-9BCD-4313-BF73-1F9CE771AFB9@microsoft.com>, Steveh <Steveh@discussions.microsoft.com> wrote: > I have created a spreadsheet on Excel 2000 and set up the pages to print > correctly. My colleage is using ...

Test topic
TEST ---JJ ...

If/Then or VBS???
I have a spreadsheet here that I am working on and need to have corresponding cells filled in. I have a list of names along the top row that corresponds with the same exact names down the first column (in the same order). An "X" is placed along someone's name in a row to show who their "partner" is -- along the top row. I need to make sure that this "partner" also has the other person marked "X". Basically, I need to automatically have Excel check that where an "X" is placed, a corresponding "X" is also placed in another c...

vbs
is there a easy method to learn visual basic (for beginners)) ,, it might not be possible but preffereably learn to use this in a short amount of time Not good to post your question multiple times. So, please do not do that in the future. As mentioned in the other post: http://www.amazon.com/VBA-Dummies-John-Paul-Mueller/dp/0764539892 -- Bob Larson Access World Forums Super Moderator Utter Access VIP Tutorials at http://www.btabdevelopment.com __________________________________ If my post was helpful to you, please rate the post. "DDD" wrote: > is there a easy method to ...

Test #17
Testing to see if my responses appear. I've responded to a number of threads in the past 24 hours and they do not appear yet. Is anyone else experiencing this? Frank Hamelly MCP-GP, MCT, MVP East Coast Dynamics www.eastcoast-dynamics.com blog: www.gp2themax.blogspot.com Hey Frank! Yes, I have also had some responses that don't show up for days...sometimes never. Or sometimes they show up on the web interface and not in Windows Mail. I know this doesn't really help resolve anything, but at least know you're not alone. :-) -- Victoria Yudin Dynamics GP MVP Flexible ...

test #9
Vendo coche seat ibiza, 1999 . en buen estado, color plata, Precio ,4900 euros. Precio 4566 Euros. Tfno: 91452123334 Puedes ver mi anuncio gratis en: www.AnunciosGratis.de Anuncios Gratis www.AnunciosGratis.de Anuncios Gratis www.AnunciosGratis.de Anuncios Gratis www.AnunciosGratis.de Anuncios Gratis www.AnunciosGratis.de Anuncios Gratis www.AnunciosGratis.de Anuncios Gratis www.AnunciosGratis.de Anuncios Gratis www.AnunciosGratis.de Anuncios Gratis www.AnunciosGratis.de Anuncios Gratis www.AnunciosGratis.de Anuncios Gratis www.AnunciosGratis.de Anuncios Gratis ...

Vote for More Detailed version Customization Guide
We would like to see more detail version with the features and options in the Customization Guide with RMS 2.0. Vote for a updated edition. -- Jason Clements ===================================================== ===================================================== Count me in -- Jenny "Jasoncleme" wrote: > We would like to see more detail version with the features and options in the > Customization Guide with RMS 2.0. Vote for a updated edition. > -- > Jason Clements > > ===================================================== > =========================...

Dynamics GP 8 to 10 on Test Server
Our current system is Dynamics 8.0 sp5 on Windows Server 2000 sp4 with SQL 2000. the planned upgrade is to bring current server up to Windows 2003 with SQL 2005 and Dynamics 10.0 sp2. I have created a test environment and successfully restored BAK's of Dynamics and Company databases into SQL 2005. I'm unable to transfer security in Dynamics 10 Utility. I copied the Dynamics.set from the production server to the test server and I installed 10 without spaces in the path on the test server but I receive the message. "The application at the location you specified is a differen...

Flash player does not support IE8 64-bit version
I am using 64-bit Windows 7 and there are two built-in IE8: 32-bit and 64-bit. The 32-bit one is working fine while the 64-bit cannot display the website with flash picture/video clip. Understand Adobe Flash Player does not support 64-bit OS. Is there any alternative for 64-bit IE? Thanks, Scott You must use the 32-bit IE if you are going to use Flash. Adobe does not support 64-bit yet. You have a 32-bit IE, click Start>Programs, and scroll down to Internet Explorer. There are two, one is notated as 64-bit. "Scott" <NoSpam-Scott.Xe@GMail.com>...

Resolve Public Folder Conflicts programatically with vbs
Hi, We currently have 3 x exch 2000 enterprise servers. A misconfiguration of an archiving process has resulted in a series of public folders containing 25,000 conflicted messages - these messages are e-mails that have partially processed by the archiving soln. I need a way of resolving the conflicts so that the second phase of the archiving can take place. Archiving process as follows:in phase 1 a mail is moved from users mailbox and placed in a PF, an imp.note.arch1 file is left in the users mailbox as pointer to the mail in the PF. The second phase moves the mail from the PF and secures i...

Test only
This is only a test Thanks Allen Maki wrote: > This is only a test > > Thanks > > microsoft.test microsoft.public.test David Wilkinson ...

Unit Testing ASP.NET
Alright, so I'm trying to do the right thing and bring the concept of Unit Testing into our ASP.NET Web Application, but we're running into walls left and right. The biggest challenge we're facing right now involves unit testing a .ASPX page where the assertion needs to evaluate a property of a ..ASCX user control included on this page. My thought was that we could construct a PrivateObject the same way we do for a ASPX and be able to use the po.GetProperty method to retrieve a property value at run-time for the user control to test the assertion. However, we recei...

TEst mail plain
plain "utkal" <utkalm@test1.com> wrote in message news:339ABAC7-7AF8-425E-A1C8-2D73BB0A60D7@microsoft.com... > plain "utkal" <utkalm@test1.com> wrote in message news:339ABAC7-7AF8-425E-A1C8-2D73BB0A60D7@microsoft.com... > plain all testing needs to be done in: microsoft.public.test.here -- Arvin Meyer, MCP, MVP http://www.datastrat.com http://www.mvps.org/access http://www.accessmvp.com ...

Rpchttp_setup.vbs
Anyone know where I can get my hands on this script? ' rpchttp_setup.vbs ' ' This script will find all Exchange servers and GCs in the given domain ' and setup access via RPC/HTTP for eligible servers. ' Option Explicit Dim oArg, oRootDSE, oADOconn, oADOcomm, rs, oOutputFile, oFSO Dim fDebug Dim fIncludeOldVersions, fIncludePortmapper Dim aServers() Dim aRpcProxyFrontEnds() Dim sExchangeConfigDN, sReg, sConfigurationNC, sAddress, sDnsDomainName Dim sSitesDN, sTemp, sOutputPath, sTempName Dim i, j Dim iExchangeServers Dim iExchangeServersSkippedVersion Dim iExchangeServ...

How to Pass a Parm from VBS script to Access 2007
We have a VBS Script that initiates a Sub in an Access 2007 DB. This works nicely. We now would like to pass a parm from our VBS script to this Sub. It is our understanding that the "command" field in our VBA code will contain the passed data. What we can't figure out is how to code the VBS script to pass the parm to Access. An example would be most appreciated. Thanks, Brad On Tue, 20 Apr 2010 18:59:01 -0700, Brad <Brad@discussions.microsoft.com> wrote: The way I understand it: Your vba script invokes the db like this: <path_to>msacc...