I have two ways:
\\10.11.11.130\FileServer\Folder2\Folder3\ \\10.11.11.130\d$\Main\FileServer\Folder2\Folder3\
And I want to determine if both paths are the same.
I want because I'm trying to move one file to another directory. Thus, an exception is thrown for the above paths.
I know I can use try and catch, but is there another way?
I thought about removing d$\Main from the second path, and then compare, but this is not always true.
Any help appreciated!
source share