2

我想从我的 java 应用程序中打开一个 CHM(帮助)文件...我的代码如下所示:

Runtime.getRuntime().exec("hh.exe myhelpfile.chm");

它可以工作,但是如何使用特定页面打开它?

谢谢,汤姆

4

2 回答 2

4

尝试这个,

是否可以从 Hh.exe 命令行打开特定主题?

http://msdn.microsoft.com/en-us/library/ms669980(VS.85).aspx#is_it_possible_to_open_a_specific_topic_from_the_hh.exe_command_line_

于 2010-08-18T06:25:15.670 回答
0
String s;
    Process p;
    try {
        p = Runtime.getRuntime().exec("chmsee sample.chm");
        BufferedReader br = new BufferedReader(
                new InputStreamReader(p.getInputStream()));
        p.waitFor();
        System.out.println("exit: " + p.exitValue());
        p.destroy();
    } catch (Exception e) {
    }
于 2014-01-06T03:36:55.720 回答