I have a "crazy application" which dumps tiff- files into c:\ when failing.
I need to move it back to an import directory. (3 choices.)
As the tiff file has the exact same file prefix as the import xml I'm doing this semi manaully today.
123.tif search importdir, to locate 123.xml in either subdir 1,2or 3. then move tiff back.
I've been able to design two batch files. One listing the tiff's the other an output of which directory the tiffs should go back into.
I'm trying to merge these to build a move command file.
ie. move c:\123.tif d:\....
dir c:\*.tif >c:\diverse\filelist.txt /b
for /f %%i in ('type c:\diverse\filelist.txt') do call :procfile %%i
set "stripped=dir /s /b d:\Incoming\TempImages\EhiData\%stripped%* ^>^>location.txt"
echo %stripped% >>filelist_short.cmd
this generates :
the first line picks the the filename from input file 1 correctly. However then the loop just picks name from intput file 2.
Is there a way to get these loops to work 1 by 1?