据我所知,正斜杠不是PowerShell中的保留关键字.但是在cmd中运行以下命令会弹出一个about对话框
"C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:about
Run Code Online (Sandbox Code Playgroud)
PowerShell中的相同内容:
'C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe' /command:about
You must provide a value expression on the right-hand side of the '/' operator.
At line:1 char:54
+ 'C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe' /c <<<< ommand:about
Run Code Online (Sandbox Code Playgroud)
是什么赋予了?
con*_*tor 14
在命令前放置一个&符号
&"C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:about
Run Code Online (Sandbox Code Playgroud)
否则,它认为你试图"C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe"通过某种东西划分字符串文字,但它不知道是什么.
| 归档时间: |
|
| 查看次数: |
1907 次 |
| 最近记录: |