首页 > 解决方案 > 如何在 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。

有任何想法吗?

标签: windowsbatch-fileinkscape

解决方案


推荐阅读