使用awt的Desktop类的open方法:

public static void startExe(String exePath){
        try {
            if(StringUtils.isNotBlank(exePath)){
                Desktop.getDesktop().open(new File(exePath)); //exePath为exe路径
            }
        }
        catch (Exception e){
            e.printStackTrace();
        }

用于自动化测试前期的初始化操作,或exe运行

相关文章:

  • 2021-10-28
  • 2022-12-23
  • 2022-02-04
  • 2022-12-23
  • 2022-12-23
  • 2021-05-12
  • 2021-11-21
  • 2022-12-23
猜你喜欢
  • 2022-01-01
  • 2021-12-19
  • 2021-12-05
  • 2021-04-10
  • 2021-04-23
  • 2021-12-18
  • 2022-12-23
相关资源
相似解决方案