Open deepakganesh78 opened 3 hours ago
$file1 = "path/to/your/file1.xml" $file2 = "path/to/your/file2.xml"
Write-Host "Comparing files: $file1 and $file2"
$result = & fc.exe $file1 $file2
foreach ($line in $result) { if ($line -match ".*.") { Write-Host "$line" -ForegroundColor Red } elseif ($line -match ".=.") { Write-Host "$line" -ForegroundColor Yellow } else { Write-Host "$line" -ForegroundColor Green } }
Define the paths to your files
$file1 = "path/to/your/file1.xml" $file2 = "path/to/your/file2.xml"
Write-Host "Comparing files: $file1 and $file2"
Use fc.exe to compare the files
$result = & fc.exe $file1 $file2
Display the output with color coding
foreach ($line in $result) { if ($line -match ".*.") { Write-Host "$line" -ForegroundColor Red } elseif ($line -match ".=.") { Write-Host "$line" -ForegroundColor Yellow } else { Write-Host "$line" -ForegroundColor Green } }