大家好,我想在 jmp 仪表板上展示我的 3D 模型。esp 文件通过 cmd 窗口执行命令打开,并在浏览器中打开。我可以在仪表板中添加 wed 页面,但是否可以使用 jsl 调用 cmd 窗口并执行命令?谢谢!
查看脚本索引中的运行程序(此处为 Coping JSL 示例)
RP = Run Program(
Executable( "PING.EXE"/*path probably not needed*/ ),
Options( {"-n 5", "localhost"} ),
ReadFunction( Function( {this}, Write( this << read ) ) )
);
有些事情可能需要您实际调用 cmd 但大多数情况下不需要。我只是想将所有输出写入我的用户配置文件
Names default to here(1);
RP = Run Program(
Executable( "cmd"),
Options( {"\[/c "ping localhost > C:\users\my_user\ping_results.log 2>&1]\"} ),
ReadFunction( Function( {this}, Write( this << read ) ) )
);
我用这个发现介绍一直在使用运行程序时。