[RESOLVED] Dot in path name
So I have come up to a opportunity where I am getting a users profile that has a dot in the name, like C:\users\user.ad\appdata. When I send that path to
Path.GetFileName("C:\users\user.ad\appdata\roaming\apps")
It errors out as it states the path is invalid. How do I get .Net to treat it as a path instead of a filename.extension?
I'm am getting the users path by this:
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
Any ideas what I can add to tell .Net to treat is as a path?