Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WSH Scripting
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
WSH Scripting
Divers
Thread ID:
00912586
Message ID:
00912586
Vues:
55
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform