Link to home
Start Free TrialLog in
Avatar of Keith McElroy
Keith McElroy

asked on

vb script run on 64 bit machine but use 32 bit so create mdb will work

Is there a way to run a vbs script from within a file such as myscript.vbs that would use the 32 bit script tool so that I do not need to send my user to the command prompt?  

Avatar of Mohammed Khawaja
Mohammed Khawaja
Flag of Canada image

Run your script as per below:

C:\windows\syswow64\wscript.exe myvbfile.vbs
Avatar of Keith McElroy
Keith McElroy


Can I run this sequence from a .vbs file in some way?  Maybe declard the syswow64 so user does not need to go to the cmd prompt?
Avatar of Brendan M
Brendan M
Flag of Australia image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I think this is what I need, question though, why is this if statement here

If InStr(UCase(WScript.FullName), "SYSTEM32") > 0 Then

Is it assuming I put SYSTEM32 in the file name of the script?

May I remove this if statement?

Thanks for clarification.
I've requested that this question be closed as follows:

Accepted answer: 250 points for mnkhawaja's comment #a41402168
Assisted answer: 250 points for brendanmeyer's comment #a41402327
Assisted answer: 0 points for maxdbase's comment #a41402728

for the following reason:

Both answers equally great, I am going to use the short cut initially but later go with the in-scrpt method