Führen Sie das jsl-Skript von vbs aus<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />Hallo
Ich würde gerne ein Skript "run.jsl" von vbs ausführen. Ich habe so etwas ausprobiert:
Dim objJMP
Dim objJSL
Dim strfileName
strfileName = "D: \ JMP \ run.jsl"
Set objJMP = CreateObject ("JMP.Application")
Set objJSL = objJMP.OpenDocument (strfileName)
objJMP.Visible = True
objJMP.RunCommand ("run.jsl")
objJMP.Quit
Aber klappt nicht
Irgendeine Idee?
Vielen Dank
Re: Führen Sie das jsl-Skript von vbs ausOk, ich habe die Lösung gefunden.
hinzufügen
//! Die erste Zeile des jsl-Skripts wird beim Öffnen der Datei automatisch ausgeführt
dann funktionieren die vbs unten
Dim objJMP
Dim objJSL
Dim strfileName
strfileName = "D: \ JMP \ run.jsl"
Set objJMP = CreateObject ("JMP.Application")
Set objJSL = objJMP.OpenDocument (strfileName)
objJMP.Visible = True
objJMP.Quit