@echo off
setlocal ENABLEDELAYEDEXPANSION
For %%a In (C D E F G H I J K L M N O P Q R S T U V W X Y Z) Do (
For /f "tokens=1-3" %%i In (PT.txt) do (
if '%%j.'=='%%a:.' (
if !ll!*==* (set ll=%%a:) else (set ll=!ll!^|%%a:)
if !nn!*==* (set nn=%%i) else (set nn=!nn!^|%%i)
)
)
)
echo !ll!
echo !nn!