I have a file that lists filenames, each on it\'s own line, and I want to test if each exists in a particular directory. For example, some sample lines of the file might be
for /f %i in (files.txt) do @if exist "%i" (@echo Present: %i) else (@echo Missing: %i)