Link to home
Start Free TrialLog in
Avatar of dclsoft
dclsoft

asked on

how to run VBScript under Windows 64 bits


Hi Friends,
When a try run a DLL using VBScript  with Windows 64 bits a receive error message below, the some DLL called using other 32 bits program like Visual Fox Pro the DLL works fine.

The  registry was made using regsvr32 under SysWOW64 folder.

Error:      ActiveX component can't create object: 'Mydll_Fox_SAP.SAP_Utilits'
Code:      800A01AD
Source:       Microsoft VBScript runtime error

Any idea about this situation?

Tnahks in advance!
Avatar of mavalpha
mavalpha

By default, you are trying to run your VBS file using the 64-bit CScript.exe, located at C:\Windows\Sytem32.  It sounds like you're pointing to a 32-bit DLL file, so you need to go to C:\Windows\SysWOW64\cscript.exe instead.  (Yes, the numbers are counter-intuitive.)

So, to run it from the command prompt, it would be

C:\Windows\SysWOW64\cscript.exe C:\Users\YourUserName\Desktop\Test.vbs

Open in new window

Avatar of dclsoft

ASKER

Mavalpha,

But if I run the VBScript from Sqlserver 2005 DTS (SISS)  it will work?  Can I setup IT into Sqlserver?
I believe DTS would let you run an application with parameters (which is what calling cscript.exe as I described above does).
https://www.experts-exchange.com/questions/21490202/SP-DTS-EXE-passing-parameters.html
ASKER CERTIFIED SOLUTION
Avatar of dclsoft
dclsoft

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial