【发布时间】:2011-08-07 08:32:45
【问题描述】:
我正在使用来自 java 的 Runtime.getRuntime.exec() 以编程方式生成要提交给 cmd.exe 的命令。
命令是tortoiseproc忽略命令的形式
tortoiseproc /command:ignore /path:file1*file2*file3*...................filen
如您所见,path 参数需要多个文件,当此字符串超过一定长度时会出现问题。 8197 个字符,如 microsoft KB for cmd.exe 中所述。
那里的解决方法是修改程序,使其接受来自文件而不是命令行字符串的参数。有人知道如何通过文件将参数传递给 tortoiseproc.exe 吗?
【问题讨论】:
标签: file command-line parameters tortoisesvn