如何解决无法找到接受“ kernel.bin”的位置参数
命令:
cat bootsect.bin kernel.bin > os-image.bin
错误:
Get-Content : It is not possible to find a positional parameter that accepts the 'kernel.bin' argument.
No linha:1 caractere:1
+ cat bootsect.bin kernel.bin > os-image.bin
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Get-Content],ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.GetContentCommand
我该如何解决?
我正在使用10台Wins 64位计算机,安装了所有内容以到达此处并停止了我不知道如何解决的错误
解决方法
该错误意味着Get-Content
(作为cmdlet cat
的别名)不理解要求执行的操作。
docs提供了示例和语法。如果传递单个字符串,该字符串将被解释为文件名,因为参数位置零与-path
相同。由于没有其他定位参数,因此该cmdlet无法理解kernel.bin
应该是什么。
如果您想容纳多个文件,则像这样将文件名作为数组传递,
cat file1,file2 > otherfile
或使用变量
$myFiles = gci <somepath>
cat $myFiles > otherfile
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。