Forum Discussion
mwilliams71
Oct 14, 2022Brass Contributor
Comparing Files in two Document Libraries with PowerShell
I have 30 files with code in a library in a web application imbedded in sub folders that I want to compare to another 30 files with code in a library in a separate web application in sub folders. If ...
NanddeepNachan
Oct 15, 2022Learn Expert
The code here should help you to compare 2 files:
https://devblogs.microsoft.com/scripting/use-powershell-to-compare-two-files/
mwilliams71
Oct 15, 2022Brass Contributor
NanddeepNachan- Thanks for this code. This may get me started, but I need to check if any file was changed in the directory. If a file was modified in the library, copy that file to a library on a different web application.