Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

welcome,

I have problem with .bat script on windows.

I use wget to download html stats page, now i have to find (in html source) url like this

http://www.example.com/stats/367895.jpeg

The 367895 is a random generated number.

and download chart jpeg.

I think i can't do this in .bat, Do You know any external command line application what i could trigger from .bat and show in output finded url ?

Regards

share|improve this question

You could use grep for Windows:
http://gnuwin32.sourceforge.net/packages/grep.htm

As a Windows built in, but much less powerful, alternative there is "find". But you cannot use regex then

share|improve this answer
1  
Windows also has findstr, which supports regexes (similar to POSIX standard regex, but without \|) – grawity Dec 3 '10 at 12:28
    
Cool! I didn't know that. – Zeemee Dec 3 '10 at 13:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .