Run Program() を使用した .bat ファイルの実行JSL から .bat ファイルを実行しようとしていますが、期待どおりに動作しません。
私には何が欠けているのでしょうか?
https://www.jmp.com/support/help/en/15.1/#page/jmp/run-external-programs.shtml
rp = RunProgram( Executable( "cmd.exe" ),
Options( {"C:\temp\myfile.bat"} ),
ReadFunction("text") // returns all text
);
//"Microsoft Windows [Version xxx]
//(c) 2018 Microsoft Corporation. All rights reserved.
//
// C:\Program Files\SAS\JMPPRO\15>"自動化とスクリプト作成消費者および市場調査データのブレンディングとクリーンアップ実験計画法品質およびプロセスエンジニアリング結果の共有と伝達Re: Run Program() を使用して .bat ファイルを実行する引用符がなぜ難しいのかを説明したサイトを見つけました。
https://community.jmp.com/t5/Discussions/Unable-to-parse-speechmarks-quot-quot-into-powershell-using/mp/245968/highlight/true#M48328
Re: Run Program() を使用して .bat ファイルを実行するcmd /c を使用すると、MS-DOS または cmd.exe でコマンドを実行できます。 実行するコマンド文字列も追加します。 たとえば、ping poftut.com を実行したい場合は、次のコマンドを発行します。 このコマンドは、コマンドを実行するプロセスを作成し、コマンドの実行が完了すると終了します。 コマンドを囲むために ” 二重引用符を使用することも非常に便利です。
--> cmd /c "ping poftut.com"Re: Run Program() を使用して .bat ファイルを実行するパラメータが 1 つありません
rp = RunProgram( Executable( "cmd.exe" ),
Options( {"/C", "C:\temp\myfile.bat"} ),
ReadFunction("text") // returns all text
);