Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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. –  Mulmoth Dec 3 '10 at 13:24
add comment

Your Answer

 
discard

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.