Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Powershell 找不到驱动器。名为'‪;c';不存在_Powershell - Fatal编程技术网

Powershell 找不到驱动器。名为'‪;c';不存在

Powershell 找不到驱动器。名为'‪;c';不存在,powershell,Powershell,我今天遇到了这个问题。我已将我的脚本缩减为除了gci'‪c:\'它会抛出此错误 Get PSPath清楚地列出了一个C驱动器,直到今天我还没有遇到过任何其他重大的PowerShell问题。我的问题的根源似乎是Windows 10的错误 我从文件夹的属性对话框的安全选项卡复制了一个路径。此字段现在在开始处包含一个不可打印的字符 有趣的是,当我为这个问题复制/粘贴到浏览器中时,它被剥离了。诊断它的唯一方法是在记事本++中将它转换为十六进制。很高兴知道。有关如何从PowerShell中可视化隐藏字符,

我今天遇到了这个问题。我已将我的脚本缩减为除了
gci'‪c:\'
它会抛出此错误


Get PSPath
清楚地列出了一个C驱动器,直到今天我还没有遇到过任何其他重大的PowerShell问题。

我的问题的根源似乎是Windows 10的错误

我从文件夹的
属性
对话框的
安全
选项卡复制了一个路径。此字段现在在开始处包含一个不可打印的字符


有趣的是,当我为这个问题复制/粘贴到浏览器中时,它被剥离了。诊断它的唯一方法是在记事本++中将它转换为十六进制。

很高兴知道。有关如何从PowerShell中可视化隐藏字符,请参阅。