I am working on a batch file where I need to compare each line of for loop A and for loop B in order to execute another command, but I can't seem to figure this one out. Any help would be greatly appreciated. The code I have so far is listed below.
@echo OFF
SetLocal EnableDelayedExpansion
for /f "delims=" %%A in ('Type "%Paths%"') do (echo %%~nxA)
pause
for /f "delims=" %%B in ('Type "%Names%"') do (echo %%B)