【发布时间】:2020-06-05 07:26:15
【问题描述】:
我通过“部署和映像工具环境”在 Windows 10 上执行了一个批处理文件
powershell Mount-DiskImage ./%WORKSPACE%/W10-LTSB.iso
已检查环境变量 WORKSPACE 并包含与文件 W10-LTSB.iso 一样存在的有效路径,但是执行此命令时会导致:
Mount-DiskImage: The system cannot find the path specified.
At line:1 char:1
+ Mount-DiskImage ./CA20-4002-OperatingSystem-AIMB-216/W10-LTSB.iso
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (MSFT_DiskImage:ROOT/Microsoft/.../MSFT_DiskImage) [Mount-DiskImage], CimException
+ FullyQualifiedErrorId : HRESULT 0x80070003,Mount-DiskImage
一切看起来都是有效的,并且已经检查了很多次,这个消息是什么意思?
【问题讨论】:
-
./表示使用当前目录,不管它是什么。也许 c:\windows\system32?请尝试使用绝对路径。 -
谢谢你的问题,创建一个答案,我会勾选它。
标签: powershell mount-diskimage