I have simple script:
Set oConn = CreateObject("ADODB.Connection")
fPath = "c:\temp"
oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & fPath & "\;Extended
Properties='text;HDR=No;FMT=Delimited'"
if oConn.Errors.Count>0 then
Wscript.Echo "Error!!!" & oConn.Errors(0).Description & " code: " & Conn.Errors(0).Number
End if
try to run on Windows 7 x64 Professional or Ultimate by means of command:
c:\Windows\SysWOW64\cscript.exe 1.vbs
it finishes with error:
error code 0x80040e21, Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
Everything works pretty well if use C# or VB.NET to do the same things.