Powershell: Compare Files
An easy way to compare files with powershell.
Fill variables with the information contained in the files.
$old=Get-Content "C:\Folder\File_number_1.txt"
$new=Get-Content "C:\Folder\File_number_2.txt"
Compare the files
Compare-Object $old $new
The results sent to a file
Compare-Object $old $new | out-file C:\Folder\Results_Compare_File.txt
No comments:
Post a Comment