package com.demo;
import java.io.*;
public class runExe {
public static void main(String args[]) {
try{
Runtime ce=Runtime.getRuntime();
File file=new File("E:\\QQ音乐\\QQMusic","QQMusic.exe"); //打开音乐
ce.exec(file.getAbsolutePath());
file=new File("C:\\Program Files\\Internet Explorer","IEXPLORE www.sina.com ");
ce.exec(file.getAbsolutePath());
}
catch(Exception e) {
System.out.println(e);
}
}
}
Öffnen Sie Musik und Browser
おすすめ
転載: blog.csdn.net/weixin_44659084/article/details/109841602
おすすめ
ランキング