你好,
我有執行 jsl 腳本的 .bat 檔案。 Jsl腳本需要由「my_app.py」執行
OTH;我想在另一個jsl檔中呼叫這個bat檔。
透過以下帖子;
關於使用.bat檔執行.JSL腳本的問題
在另一個 JSL 腳本中執行 JSL 腳本
呼叫.exe,讓它運行並在.exe關閉後打開另一個.jsl
嘗試過;運行程式
Run Program("c:\python-x64\python-x64.exe" -E "C:\Users\AppData\Roaming\SAS\JMP\Addins\my_app.py" "C:\jsl_script\my_script.jsl" /OutputPath="C:\jsl_script\my_script.txt" /Description="my_script" > "C:\jsl_script\my_script.log" 2>&1)
但出現這個錯誤;

我們如何在jsl中執行cmd命令?
@約書亞,
我對你想要做的事情有點困惑。 不過,我附上了為《JSL Companion,Applications of the JMP Scripting Language,Second Edition》一書編寫的劇本。 為了運行程序()您的選項需要在清單中指定。
我希望所附腳本中提供的範例和註釋對您有所幫助。 考慮到從腳本中摘錄的語法註釋,該錯誤訊息是有意義的。
/* Syntax
rp_obj = Run Program( Executable("path/filename.exe"), Options({"/a", "/b", "..."}),
Read Function(expression),
Write Function(expression),
Parameter(expression)
);
Description: Runs an external program specified by the Executable argument, with the command line
arguments specified by the Options argument.