Runtime.getRuntime.exec("notepad.exe");

解决方案 »

  1.   

    try
       {File file=new File (filedialog_load.getDirectory (),filedialog_load.getFile ());
    Runtime ce=Runtime.getRuntime ();
    ce.exec (file.toString ());
       }
       catch(FileNotFoundException e1){}
       catch(IOException e2){}
    /*---------------------
    try{
          Runtime rt=Runtime.getRuntime();
          rt.exec("IEXPLORE g:\\packages.html");
          }
          catch(Exception e)
          {
           e.printStackTrace();
          }*/
      

  2.   


    http://www.csdn.net/expert/topic/795/795315.xml?temp=.2226221
    数据库同步的巨难问题,谁解决了100分奉送,我还管他叫阿爹!!
      

  3.   

    如果我要用NOTEPAD打开 c:\\tem.txt
    我又该怎么办?