这一篇写的是一个当作快捷方式的小程序
public class kuaijie{
public static void main(String args[])throws Exception{
while(true)
Runtime.getRuntime().exec("E:\\Program Files (x86)\\Tencent\\QQ\\QQProtect\\Bin\\QQProtect.exe");
}
}
其中的while(true) 加上后无限打开 去掉后打开一次
("")内 为应用程序的安装位置
throwss Exception 防止错误