Thanks for the response. I am using Win XP with the command Prompt. I will read what you suggested...
I see your code line below- I guess I am trying to understand how variables such as files in a directory would be processed....
One after another.
Read it as For each entry in the set of "*.*", run something.exe
where *.* means "any file name here" and something.exe
is your executable that you want to run.
Try
for %%1 in (*.*) do echo %%1
in a batch file.
It should print to screen a list of files in the directory.
Try
for %%1 in (*.bat) do echo %%1
and it should print a list of files, but only those files whose extension is bat
Try
for %%1 in (foo*.*) do echo %%1
and it should print a list of files, but only those files whose names begin with foo
Getting a feel for it now?
Of course, the command echo can be replaced with the executable of your choice, or even another batch file to run.
Playing around with silly and simple examples is often a good way to get a grasp on what things do, before you try to implement it in a real - and often more complicated - job.