How to check if 2 network shares are the same folder.
-
Assume the following: In a computer called COMPUTER there is the following folder: c:\folder1\folder2 Now, there are 2 shares: \\COMPUTER\NetFolder2 --> which is c:\folder1\folder2 \\COMPUTER\NetFolder1 --> which is c:\folder1 Now, I can get to through the network to "folder2" in 2 different ways: \\COMPUTER\NetFolder2 \\COMPUTER\NetFolder1\folder2 Is there a way to check that \\COMPUTER\NetFolder2 is the same as \\COMPUTER\NetFolder1\folder2 ??? Thanks! :-)
-
Assume the following: In a computer called COMPUTER there is the following folder: c:\folder1\folder2 Now, there are 2 shares: \\COMPUTER\NetFolder2 --> which is c:\folder1\folder2 \\COMPUTER\NetFolder1 --> which is c:\folder1 Now, I can get to through the network to "folder2" in 2 different ways: \\COMPUTER\NetFolder2 \\COMPUTER\NetFolder1\folder2 Is there a way to check that \\COMPUTER\NetFolder2 is the same as \\COMPUTER\NetFolder1\folder2 ??? Thanks! :-)
Does
PathIsSameRoot()
help?"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
-
Does
PathIsSameRoot()
help?"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
Hey, Thanks for your help! :-) No it doesn't help... Well, I am happy to say that I just found out that Boost library can do that using boost::filesystem::equivalence() function. But my main problem still remains... How to tell that NetFolder1 is NetFolder2's parent? (it is possible to iterate all the shared directories and create a data structure that will hold that data, but when there are many shared folders, it is almost insane!) Thanks Again!!!