Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WSH Scripting
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
WSH Scripting
Miscellaneous
Thread ID:
00912586
Message ID:
00912586
Views:
56
Hi all,

I have these 2 scripts one is a vb script the other a java script. The vb scrip one works, the javasript version doen't seem to do anything. It fails but it's doesn't even create the audit log so.


Here is the vb script version Test.vbs - it works
set oImport = WScript.CreateObject("operaimport.clsOperaImport")
If (oImport.ImportData("SN", "Z", "C:\SOURCE\MYSNAME", 1, "C:\SOURCE\MYAUDIT", "U")) Then
WScript.Echo("Import succeeded")
Else
WScript.Echo("Import failed")
End If


Here is the js version - doesn't work
var oImport = WScript.CreateObject("DLLCom.Class");
if (oImport.ImportData("SN", "Z", "C:\SOURCE\MYSNAME", 1, "C:\SOURCE\MYAUDIT", "U")==true)
WScript.Echo("Import succeeded");
else
WScript.Echo("Import failed");


Any ideas please?

Thanks

Mathias
Mathias Banda

Time is longer than a rope.
Next
Reply
Map
View

Click here to load this message in the networking platform