1

We are using PowerShell, and I have an ISO image that I want to write to a USB device.

In Unix using "dd" is very easy, and I've tried with third-party windows "rawrite.exe" but with mixed results.

Is there a way to do so using PowerShell internals only? Any cmdlet extension to do so?

4

2 回答 2

1

您实际上可以将目标 iso 挂载为磁盘映像,然后将文件从挂载的驱动器复制到目标位置,而不是从 iso 读取和提取数据。

这个想法来自以下网址。

http://www.codebroth.com/extracting-iso-images-with-powershell/

于 2017-08-14T08:09:00.867 回答
0

如果什么都不存在,你可以自己滚动。

这里有几个起点(c#):

或者,7zip 允许您提取 iso 文件,因此您可以通过其命令行界面(通过脚本)调用它(或类似的)来实现您的目的?

于 2012-10-19T13:21:47.773 回答