Trying to make a script that searches the local computer for filenames (with wildcards) from a textfile (filenames.txt) and types the result in a logfile.txt.
So far I got this:
for /f "tokens=* delims= " %%a in (filenames.txt) do (
if exist %%a echo %%a found on %computername% >> logfile.txt
That works fine but I would like the script to search for ALL files for every hit in "filenames.txt".
If I have a file called hello12433.txt and hello34#.exe it should report both, if the filename is hello*.* and then continue on the next filename in filenames.txt
Hope I explained it good enough =).