你好,
我有执行 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.