六狼论坛's Archiver
首页
›
windows
› 如何打开本地文件
任我随风
发表于 2013-2-7 03:28:47
如何打开本地文件
try
{
String cmd="rundll32 url.dll FileProtocolHandler file://文件路径/文件名 ";
//启动相应的windows程序来打开文件
Runtime.getRuntime().exec(cmd);
}catch (Exception e1){
System.out.println(e1);}
页:
[1]
查看完整版本:
如何打开本地文件