RunBatch()
的方法。我需要的是 - 如果适用 - 使 .net 应用程序自动响应此消息,而无需让工具等待用户手动完成。
我发现命令提示符可能会从键盘手动或从文件接收返回键,因此我创建了一个名为 input.txt 的文本文件,其中仅包含空行(通过从键盘按 Enter 键),然后这样运行批处理:
Lualatex.exe "F:\file1.tex" <input.txt
注意事项:< before the file path means that the inputs needed by the exe running will be provided from the file specified. Also notice that the file is in the same path as the exe.