startOneExe.java:
import java.awt.*;
import java.io.File;

public class startOneExe {
    public static void main(String[] args) throws AWTException{
        try{
            Desktop.getDesktop().open(new File("D:\\Program Files\\Genshin Impact\\launcher.exe"));

        } catch(Exception e){
            e.printStackTrace();
        }
    }

}

 

posted on 2022-07-04 20:52  大话人生  阅读(360)  评论(0编辑  收藏  举报