0

有没有办法创建一个批处理文件,当它在网站上查找某些内容并在那里找到图片、文本或其他内容时,它会对其采取行动,例如,当它找到图片时批处理应该 GOTO:Choice1 和什么时候不是 GOTO:Choice2 ?

4

1 回答 1

0

这里有一个例子:

@echo off
curl URL_of_Your_Web_site>File.xml
findstr /i "the string to search" file.xml && echo string found || echo string not found

如果您必须在网站上进行登录,您必须首先下载带有您的 ID 和密码的 cookie。

于 2014-07-26T15:47:44.883 回答