|
2#
楼主 |
发表于 2013-5-26 22:23:13
|
只看该作者
用vbs解决了,但是有个小问题:因为使用那个了xmlhttp,这个批处理会被一些杀毒软件认为有毒而屏蔽或删除,继续求解决办法- @echo off
- echo 未找到抓取程序IECapt.exe,正在自动获取....
- echo Set xPost = CreateObject("Microsoft.XMLHTTP") >getiec.vbs
- echo xPost.Open "GET","http://1.2.3.4/iecapt.exe",0 >>getiec.vbs
- echo xPost.Send() >>getiec.vbs
- echo Set sGet = CreateObject("ADODB.Stream") >>getiec.vbs
- echo sGet.Mode = 3 >>getiec.vbs
- echo sGet.Type = 1 >>getiec.vbs
- echo sGet.Open() >>getiec.vbs
- echo sGet.Write(xPost.responseBody) >>getiec.vbs
- echo sGet.SaveToFile "iecapt.exe",2 >>getiec.vbs
- cscript getiec.vbs >nul
- if exist iecapt.exe echo Captured IECapt.exe
- del getiec.vbs
复制代码 |
|