windows - 如何在 Windows cmd 中将命令通过管道传输到 Inkscape --shell?
问题描述
--shell
我正在尝试构建一个脚本来使用inkscapes模式批量转换一堆文件。一个简单的问题是:如何将命令字符串通过管道传输到 shell 模式以执行(不使用交互式 shell)?
这在 cmd 中不起作用:
"C:\Program Files\Inkscape\bin\inkscape.com" --shell "file-open:C:\Users\***\file.svg; export-type:pdf; export-do;"
** (org.inkscape.Inkscape:22596): WARNING **: 16:56:30.053: Fonts dir 'C:\Users\***\AppData\Roaming\inkscape\fonts' does not exist and will be ignored.
ink_file_open: '' cannot be opened!
InkscapeApplication::document_open: Failed to open: file-open:C:\Users\***\file.svg; export-type:pdf; export-do;
ConcreteInkscapeApplication::on_open: failed to create document!
不幸的是,我不能使用 Powershell。
有任何想法吗?
解决方案
推荐阅读
- python - 如何将 .iloc 与 .isnull() 一起使用
- angular - 未捕获(承诺中):TypeError:尝试使用不同参数导航到同一路由时,无法读取 null 的属性“组件”
- php - 如何检测 php utf8 字符串中的代理对?
- c - OpenCL 变量声明在内核范围之外失败
- spark-streaming - 如何监控 Hadoop 集群中的 Spark 流作业?
- javascript - 反应要求。确保。无法读取 require 加载的组件的 props
- ios - 如何在swift中从根视图控制器到导航堆栈中的最后一个视图控制器执行segue?
- scala - Play 子项目是否需要每个带有 Macwire 的 ApplicationLoader?
- java - 将 JSON 转换为对象属性列表 (Java)
- imagemagick - 使用带有混合的 GraphicsMagick 拼接图像