0

Is there a way to create a batch file that when it looks something up on a website, and find a picture, text or something there, that it takes action to it, like, when it found the pictures the batch should GOTO:Choice1 and when not GOTO:Choice2 ?

tanckom
  • 23
  • 4

1 Answers1

0

Here an example :

@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

If you have to make a LOGIN in the Web site you have to download first the cookie with your ID and Password.

SachaDee
  • 9,245
  • 3
  • 23
  • 33