I was looking for a batch file, that saves one of listed files as variable, then proceeds to get some information about it and then set him as already listed, and then list every other file until there are none left. Important is to make %FILE% as single file (ex.: C:\folder\file.ext) I was trying this:
@echo off
:loop
for %%x in (%dir%\*) do set FILE=%%x
if %FILE%=%alreadyusedfile% goto loop
goto scan
:scan
echo Now scanning %FILE%
(do some things here)
set alreadyusedfile=%alreadyusedfile% %FILE%
goto loop
But seems it doesn't work. Any ideas?