0
Answer

Need a code to validate the directory of form \\sreekarm\dir1\..\dir2\dir3\

Photo of Sreekar M

Sreekar M

18y
1.6k
1

Hello All,

I have a string containing the file path as \\sreekarm\dir1\..\dir2\..\dir3\ .

Now I need an efficient C# code which converts the above fileshare to \\sreekarm\dir3 .

I mean it has remove " .. " and navigate to the earlier directory.

Best regards
Sreekar M