如何在 Windows cmd 中将命令通过管道传输到 Inkscape --shell?

问题描述

我正在尝试构建一个脚本来使用inkscapes --shell 模式批量转换一堆文件。简单的问题是:如何将一串命令通过管道传输到 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。

有什么想法吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)