打开文件所在目录和打开指定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");
}
}
相关文章推荐
- 尝试为文件附加自动命名的数据库,但失败。已存在同名的数据库,或指定的文件无法打开或位于 UNC 共享目录中
- win下配置eclipse使其能像MyEclipse一样打开当前文件所在目录
- EclipseIDE制作<打开文件所在目录>插件 for windows
- 遍历mac指定目录下所有Mach-O文件,找出函数符号所在的文件(库冲突用)
- c#winform选择文件,文件夹,打开指定目录方法
- 尝试为文件 F:\visual studio 2010\bkbs\paperCMS\App_Data\Project.mdf 附加自动命名的数据库,但失败。已存在同名的数据库,或指定的文件无法打开或位于 UNC 共享目录中。
- 可以在Eclipse中直接打开文件所在目录
- eclipse打开文件所在目录
- SHELL编程练习-复制指定文件(保持文件所在目录结构)
- PHPStorm打开文件所在目录
- C#打开指定文件或目录
- eclipse 利用windows资源管理器打开当前文件所在目录 | eclipse下的Java工程路径问题
- 查找程序所在上一级目录中是否存在指定文件夹,不存在就建立,并在其中新建一个txt文件
- [FUNC]在编辑器中按热键打开文件所在目录
- C# 打开指定目录并定位到文件
- Eclipse插件EasyExplore 打开文件所在目录
- 搬砖中的小事(四)之工具--通过打开的文件进入其所在的目录配置
- c++编程实现指定目录下,捕获文件打开事件 。目录上锁
- eclipse中直接打开工程文件所在目录插件
- 打开指定目录 and 打开指定文件