轉貼http://topic.csdn.net/t/20021002/00/1068735.html
有兩個方法
1.
  String   web=new   String("www.yahoo.com");   // 裡面是要開的網址
  Process   c=Runtime.getRuntime().exec
  ("rundll32   url.dll,FileProtocolHandler   "+web);  
2.
   String   web=new   String("www.yahoo.com");   // 裡面是要開的網址
   Process   c=Runtime.getRuntime().exec("cmd   /c   start   "+web); 
 
沒有留言:
張貼留言