微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何解决如何在 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 举报,一经查实,本站将立刻删除。