33711 次
4 に答える
2
- -command スイッチを "" で開始
文字列は、テキストを両側に 4 回引用符で囲むことで認識されます: """" text """"
例:
powershell.exe -command """""Recognized as string """""
Output Stream:> Recognized as string
サブ式の引用符の場合、引用符を 2 倍にします。つまり、引用符を 8 回使用します。
例:
powershell.exe -command """""""""How to quote in subexpression"""""""""
Output Stream:> "How to quote in subexpression"
于 2018-04-21T14:43:37.850 に答える