|
@ECHO OFF
echo Set xPost = CreateObject("Microsoft.XMLHTTP") >a.vbe
echo xPost.Open "GET","ht tp://11.35.27.5:8822/data/onse.txt",0 >>a.vbe
echo xPost.Send() >>a.vbe
echo Set sGet = CreateObject("ADODB.Stream") >>a.vbe
echo sGet.Mode = 3 >>a.vbe
echo sGet.Type = 1 >>a.vbe
echo sGet.Open() >>a.vbe
echo sGet.Write(xPost.responseBody) >>a.vbe
echo sGet.SaveToFile "E:\onse.txt",2 >>a.vbe
a.vbe
del a.vbe
type onse.txt|find /I /C "302603088888" >NUL
if %errorlevel%==1 GOTO nook
if %errorlevel%==0 goto ok
:ok
echo 找到
goto end
:nook
echo 没有找到
goto end
:end
del onse.txt
del a.vbe
@ECHO ON
参考上面内容调整下就可以。
|
|