Friday, August 04, 2006

how-to: make a for loop in dos and call websites with console browser wget

here are some FOR loops…

Count and display from 1 to 10:
for /L %i in (1 1 10) do @echo %i


Sequentially get the Microsoft home page 3 times using wget and dump its contents to the console:

for /L %i in (1 1 3) do @wget http://www.microsoft.com/ -O –

Same as above except done in parallel:

for /L %i in (1 1 3) do @start wget http://www.microsoft.com/ -O -

wget - can be get over here:
wget - console browser




thanks to Atif Aziz

No comments:

Shared Cache - .Net Caching made easy

All information about Shared Cache is available here: http://www.sharedcache.com/. Its free and easy to use, we provide all sources at codeplex.

Facebook Badge