Can create Scripting.FileSystemObject 64-bit but not 32-bit

My client has a 64-bit version of Windows 2012 R2 in a virtual machine. I gave the client a 32-bit program compiled with VB6 that does not work on this line:

Set Run.FileSys = CreateObject("Scripting.FileSystemObject")

where Run.FileSys is of type Variant. Over the years, this program has worked on many, many systems, but in this case it fails with

Run-time error '429':
ActiveX component can't create object

When the client starts

regsvr32 scrrun.dll

in the SysWow64 folder, he says that he was successfully registered. I instructed her to run the following:

reg query "HKEY_CLASSES_ROOT\Scripting.FileSystemObject\CLSID"
reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows Script Host\Settings\Enabled"
reg query "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Script Host\Settings\Enabled"

It indicates that the CLSID value is {0D43FE01-F093-11CF-8940-00A0C9054228}, and there are no "Enabled" keys (which can be used to disable the script host).

Studying the SCRRUN.DLL file in the SysWow64 folder, its version number is 5.8.9600.17415.

Windows 2012 R2, . Dependency Walker . Dependency Walker . , :

Loaded "SXS.DLL" at address 0x681A0000 by thread 1.
Loaded "DWMAPI.DLL" at address 0x73E30000 by thread 1.
Loaded "CLBCATQ.DLL" at address 0x755D0000 by thread 1.
Loaded "SCRRUN.DLL" at address 0x67BB0000 by thread 1.
Loaded "VERSION.DLL" at address 0x74910000 by thread 1.

, :

Loaded "SXS.DLL" at address 0x72B70000 by thread 1.
Loaded "DWMAPI.DLL" at address 0x724F0000 by thread 1.
Loaded "CLBCATQ.DLL" at address 0x74DE0000 by thread 1.
Loaded "CRYPTSP.DLL" at address 0x747E0000 by thread 1.
Loaded "RSAENH.DLL" at address 0x74710000 by thread 1.
Loaded "BCRYPT.DLL" at address 0x747C0000 by thread 1.
Thread 2 started in "NTDLL.DLL" at address 0x77324A00.
Thread 3 started in "NTDLL.DLL" at address 0x77324A00.
Thread 4 started in "COMBASE.DLL" at address 0x74C8D7E0.
First chance exception 0xC000008F (Float Inexact Result) occurred in "KERNELBASE.DLL" at address 0x75BC4598 by thread 1.
First chance exception 0xC000008F (Float Inexact Result) occurred in "KERNELBASE.DLL" at address 0x75BC4598 by thread 1.
Thread 2 exited with code 0 (0x0).
Thread 3 exited with code 0 (0x0).
Thread 1 exited with code 0 (0x0).
Exited "VB6SCRIPTINGTEST.EXE" (process 0x94) with code 0 (0x0) by thread 4.

, SCRRUN.DLL, CRYPTSP.DLL . , . - , , . MacAfee Virus Scan Enterprise 8.8 .

, . VBScript, VB6 VB.Net, Scripting.FileSystemObject. :

  • VBScript: ( , 64-?)
  • VB6 (32-):
  • VB.Net, 32-:
  • VB.Net, 64-:

, , 64- SCRRUN.DLL, 32- . Windows Scripting Host, , . - , ?

+4
3

( , ). , CreateObject("Scripting.FileSystemObject"), , , .

VB6 . , - , , , , , ​​ . , Windows 2012 R2. !

, , , , Windows 2012 R2, . , Windows API, DLL, TLB OCX , . , , , - , Windows XP SP3 , .

0

( ). VB6, 32- Windows 7. 64- ( Windows 7, Windows 8), . 32- DLL, . , Microsoft , . , 32- DLL , .

0

, .

50 ( . https://technet.microsoft.com/en-us/library/cc722188(v=ws.10).aspx)

​​ , F8, . F8 Windows. Windows, . [From Start - ].

" " " " .

" ".

. . C:\Windows\System32\LogFiles\Srt\SrtTrail.txt.

, Windows , " " , " ", ENTER.

" ".

type C:\Windows\System32\LogFiles\Srt\SrtTrail.txt |more

Also uninstalling and then reinstalling the service pack usually updates files that may be damaged.

-1
source

All Articles