Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
なぜ私はTCLでこれを行うことができません:
set path "|C:/Program Files/Example/My Program/prgrm.exe"
文字列パスは次の値を取得します。
"C:/Program".
しかし、スペースを削除すると、完全なパスが取得されます...誰かアイデアがありましたか?
これは、パイプを使用してサブプロセスを実行するためのコードが、文字の後にTcl リストを取得するためです。|次のようにビルドして実行します。
|
set path "C:/Program Files/Example/My Program/prgrm.exe" set pipe [open |[list $path]]
(そのリストの後の項目は、 に渡す引数prgrm.exeです。)
prgrm.exe