Method of running 32-bit VBScript on Windows 64 bit operating system

Time:2021-12-8

Today, on the 2008 R2 64 bit server system, when running VBS files, the following prompts are given

?
1
2
3
4
5
6
7
8
9
---------------------------
Windows Script Host
---------------------------
Script: C: \ users \ administrator \ desktop \ vbs_ cf.vbs
that 's ok:   ten
Character: 1
Error: provider not found. The program may not be installed correctly.
Code: 800a0e7a
Source:   ADODB.Connection

Why can’t the normal program run on 2003 be used on 08? After investigation, it turns out that the 32-bit program can’t be run directly under 64 bit, so you can refer to the following methods to solve it

Method of running 32-bit VBScript on Windows 64 bit operating system:

1. Start – > Run – > Input:% windir% \ syswow64 \ cmd.exe

Method of running 32-bit VBScript on Windows 64 bit operating system

2. At the command prompt, enter: cscript your VBS file. VBS

Method of running 32-bit VBScript on Windows 64 bit operating system

The above method can solve the problem that 32-bit components cannot be used under 64 bit operating system, such as “ADOX. Catalog”
When you run VBS directly, you will be prompted:
Error: provider not found. The program may not be installed correctly.
Code: 800a0e7a
Source: adox.catalog