【问题标题】:How to automate burning ISO using NeroCmd [closed]如何使用 NeroCmd 自动刻录 ISO [关闭]
【发布时间】:2014-11-30 17:57:56
【问题描述】:

我想要一种将 ZIP 文件刻录成 ISO 文件的快速方法,因此我使用了 NeroCmd.exe,它是 Nero 的命令行工具。当我使用以下命令时:

NeroCmd --write --drivename "Image Recorder" --real --iso isoName rarFile.rar

问题是它提示输入图像名称,我不知道是否可以在参数中指定它以及我应该包含哪个参数,假设图像名称是“Image.iso”。

编辑:

我尝试使用--output_image test.iso,所以我的最终代码是:

NeroCmd --write --no_error_log --drivename "Image Recorder" --real --iso Drive --enable_abort --underrun_prot --output_image Image.iso --verify rarFile.rar

但没有创建文件,这是控制台输出:

PHASE: Unspecified
[i] Generation of disc structures started

    Creating directories
[i] Creating directories
    PHASE: Unspecified
[i] Generation of disc structures completed
    Checking discs
[i] Checking discs
Enter file name to save image to (RETURN to abort): GameSetup.iso
There is not enough space available to burn the image.
Enter file name to save image to (RETURN to abort): Not enough space available in the given location.
[!] Canceled by user

ERROR: The operation cannot be performed without user interaction!
User aborted!

该命令在没有该参数的情况下可以完美运行,但问题是它会提示。

【问题讨论】:

  • NeroCmd User manual 拥有所有命令行选项。
  • 我知道,但不详细。例如它是“--something 指定图像名称”,我不知道它是输入图像还是输出,所以我迷路了。

标签: cmd iso


【解决方案1】:

手册,请参阅 David 提供的链接,第 5.9 节写入图像:

--output_image <filename>

如果是图像记录器,请指定输出图像文件名 用于避免提示输入文件名。

【讨论】:

  • 请阅读我对该主题的编辑。
  • 我不再使用 NeroCMD,而且很难记住...
  • 尝试用双引号将文件名括起来并提供文件目标的完整路径:nerocmd --write --real --no_error_log --drivename "Image Recorder" --iso "NameXYZ" --enable_abort --underrun_prot --output_image "D:\Image.iso" --verify rarFile.rar。我的第一个 NeroCMD 版本(2000 年代初期)不支持 --output_image。他们有一天添加了它。马丁
  • 或者简而言之nerocmd --write --real --drivename "Image Recorder" --iso "NameXYZ" --output_image "D:\Image.iso" rarFile.rar
【解决方案2】:

参考Using NeroCmd.exe to burn data files

我有一个 nerocmd.exe 的工作示例,它位于一个批处理文件中 压缩文件,然后将其刻录到 cd-rw。

@echo off

cd c:\

"c:\program files\winzip\wzzip" -u "c:\Well 319\Zip\Order From and
Lookup.zip" "c:\Well 319\lookup.mdb" "c:\Well 319\Order From.mdb"

"C:\Program Files\Ahead\Nero\NeroCmd.exe" --write --drivename e --real
--speed 10 --iso MCandOS_Backup --detect_non_empty_cdrw --enable_abort
--underrun_prot --create_iso_fs "C:\Well 319\Zip\Order From and
Lookup.zip" --force_erase_cdrw

@cls

【讨论】:

  • 提示输入要保存图片的文件名。所以你的代码没有帮助
猜你喜欢
  • 1970-01-01
  • 2010-09-26
  • 1970-01-01
  • 2012-01-21
  • 2013-11-20
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-07-06
相关资源
最近更新 更多