`
txin0814
  • 浏览: 218282 次
  • 性别: Icon_minigender_1
  • 来自: 湖南
社区版块
存档分类
最新评论

java swing 程序打成exe后 开机自动运行

    博客分类:
  • java
阅读更多
代码如下:
String cmd = "reg add HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Run /v your_exe_name /t REG_SZ /d your_path\\your_exe /f";
Runtime.getRuntime().exec(cmd);
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics