Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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


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

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 ?


share|improve this question

You could use grep for Windows:

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

share|improve this answer
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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.