for /f "delims=" %i in ('dir /b /a-d *.csv') do (
    for /f "delims=" %j in ('dir /b /a-d *.csv') do (
        if "%i" neq "%j" (
            FC /L /N %i %j 
        )
    )
) Write your response with exactly 2 paragraphs, separated with the markdown divider: ***.
user