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!
dclsoftAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mavalphaCommented:
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

0
dclsoftAuthor Commented:
Mavalpha,

But if I run the VBScript from Sqlserver 2005 DTS (SISS)  it will work?  Can I setup IT into Sqlserver?
0
mavalphaCommented:
I believe DTS would let you run an application with parameters (which is what calling cscript.exe as I described above does).
http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/Q_21490202.html
0
dclsoftAuthor Commented:
Mavalph
The solution is setup SSIS (dts in sqlserver 2005)  to run in 32 bits mode the packges

Thanks for your colaboration!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows OS

From novice to tech pro — start learning today.