tags:

views:

155

answers:

1

can you please share with me if you have any tool/script to check the difference between two "web.config" files.

+1  A: 

You can use Compare-Object as follows:

clear-host
$strFile1 = get-Content "C:\config_files_1\web.config"
$strFile2 = get-Content "C:\config_files_2\web.config"
Compare-Object $strFile1 $strFile2

For further information, you may be interested in checking out the following article:

Daniel Vassallo
will it work with powershell v1.0?
CrazyNick
Yes, I have just tried it in version 1.0.0.0. It works.
Daniel Vassallo
Great...Thank you.
CrazyNick