打开txt文件命令

来源:互联网 发布:淘宝看不到买家评论吗 编辑:程序博客网 时间:2024/05/21 11:07
         File file =new File("");
         String p = file.getAbsolutePath();
         String command = "notepad "+p+"/help.txt";
         try{
         Runtime.getRuntime().exec(command);
         }catch(Exception e){
          e.printStackTrace();
         }
原创粉丝点击