You are comparing the paths to those files. What you need to do is to compare their content. Try this:
string path1 = @"\\192.168.5.10\fbar\TOOLS\ProbingApps\ProbingSystem\CoreTouchDownApps\version.txt";
string path2 = @"C:\CoreTouchDownApps\version.txt";
string content1 = File.ReadAllText(path1);
string content2 = File.ReadAllText(path2);
if(content1 == content2)
{
}
else
{
}
Please note that
File.ReadAlltext()[
^] reads the content of the file into memory. You shouldn't use this with big files.