если на PowerShell, тогда по типу моего "Общий" на cmd
Код:
![Выделить весь код](images/misc/selectcode.png)
$file1 = 'C:\1.txt'
$file2 = 'C:\2.txt'
$fileZ = 'C:\3.txt'
$z = compare $(gc $file1) $(gc $file2)
"Этого нет в $file1" >> $fileZ
$z.where({$_.SideIndicator -eq '=>'}).InputObject >> $fileZ
"Этого нет в $file2" >> $fileZ
$z.where({$_.SideIndicator -eq '<='}).InputObject >> $fileZ