您的位置:首页 > 其它

打开文件所在目录和打开指定Word文件

2011-05-09 10:55 337 查看
public class RuntimeTest{
public static void main(String args[]) throws Exception{
Runtime.getRuntime().exec("cmd /c start explorer C://Program Files");
}
}
 

public class Test {
public static void main(String args[]) throws Exception {
Runtime.getRuntime().exec("cmd /c start winword D://31213131.doc");
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  exception string class cmd c
相关文章推荐