Sreekar M

Sreekar M

  • NA
  • 1
  • 0

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

Jan 4 2007 2:22 AM

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