I have a batch file containg the following
echo %time%
echo downloading five
C:\Python25\python download.py five xml
echo %time%
echo downloading bitt
C:\Python25\python download.py bitt xml
echo downloading stats
C:\Python25\python download.py stats html
echo %time%
This is part of a long list of similar commands
I would like to have some sort of a list (pseudocode)
sites = (five, bitt, stats)
ext = (xml, xml, html)
so I could do something like this
for i,j in sites, ext
do
echo %time%
echo downloading %i%
C:\Python25\python download.py %i% %j%
end
whatever the syntax would be
Can this be done?
Thanks
Geert
Start Free Trial