I'm sure this is easy, but just don't seem to be able to get it. I'm trying to create a batch program that I want to go through all files in a directory and then take each file and run a program with that file as the paramater for the program. IE there is a directory call Foo, and in the directory there is Bar1.txt, bar2.txt (etc....). I want this batch file to go through the current directory and grab all files and supply them to another program. i.e.
Start "C:\Program Files\7-zip\7z.exe" filename
Of course the bat file would supply the filename as it goes through the directory. I can do everything other than going through a directory grabbing the file names. Sorry if this is easy, but I can't seem to figure it out. Any help would be greatly appreciated. Thanks.
-Zipper