Here the File Path is set in variable or writing directly in the command should include the quotes like above.
If you have any path which includes backslashes like:
"C:\users\delsg\"
When writing above path in PowerShell commands, rewrite it like: "C:\\users\\delsg\\"
Few other examples were:
It works with single quotes. Command (or PowerShell) will take off the double quotes unless they're back slashed. Or put it in a script. Or pass the argument list as an array.
发布评论
评论(1)
powershell示例命令:
此处的文件路径是在变量中设置的,或者直接在命令中编写应包括上面的引号。
如果您有任何路径,其中包括:
“ C:\ users \ delsg \”
在PowerShell命令中上述路径时,请像以下方式一样重写:
“ c:\\ users \\ delsg \\”
其他几个示例是:
它可与单个引号一起使用。命令(或powershell)将摘下双引号,除非它们 shash slash 。或将其放入脚本中。或通过参数列表作为数组。
PowerShell example Command:
Here the File Path is set in variable or writing directly in the command should include the quotes like above.
If you have any path which includes backslashes like:
"C:\users\delsg\"
When writing above path in PowerShell commands, rewrite it like:
"C:\\users\\delsg\\"
Few other examples were:
It works with single quotes. Command (or PowerShell) will take off the double quotes unless they're back slashed. Or put it in a script. Or pass the argument list as an array.