|
-
Apr 12th, 2024, 01:22 PM
#1
Thread Starter
Frenzied Member
[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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|