0
点赞
收藏
分享

微信扫一扫

JAVA实现截取网页图片

毅会 2023-05-09 阅读 96


代码段:

public static int GetPic(String URL,String ADid){

 String path=CatPath+"iecapt.exe";

 Process pro = null;

 try {

 pro = Runtime.getRuntime().exec(path + " " + URL + " " + CatPath + ADid + ".jpg");

 pro.waitFor();

 }catch(IOException e){ 

 } catch (InterruptedException e) {

 } 

 return 0;

 }

 

举报

相关推荐

0 条评论