How to do a for loop in windows command line?
Posted
by
TheFoxx
on Stack Overflow
See other posts from Stack Overflow
or by TheFoxx
Published on 2012-06-25T15:13:15Z
Indexed on
2012/06/25
15:15 UTC
Read the original article
Hit count: 129
I was wondering if this was possible? I'm not familiar with using windows command line, but I have to use it for a project I'm working on. I have a a number of files, for which I need to perform a function for each. I'm used to working with python, but obviously this is a bit different, so I was hoping for some help.
Basically I need the for loop to iterate through 17 files in a folder, perform a function on each (that's using the specific software I have here for the project) and then that will output a file with a unique name (the function normally requires me to state the output file name) I would suck it up and just do it by hand for each of the 17, but basically it's creating a database of a file, and then comparing it to each of the 17. It needs to be iterated through several hundred times though. Using a for loop could save me days of work.
Suggestions?
© Stack Overflow or respective owner