Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法创建一个批处理文件,当它在网站上查找某些内容并在那里找到图片、文本或其他内容时,它会对其采取行动,例如,当它找到图片时批处理应该 GOTO:Choice1 和什么时候不是 GOTO:Choice2 ?
这里有一个例子:
@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。