I need to know which is the real path of a given path.
For example:
The real path is: d:\\src\\File.txt
And the user give me: D:\\src\\file.txt
I nee
On Windows, paths are case-insensitive. So both paths are equally real.
If you want to get some kind of a path with canonical capitalization (i. e. how Windows thinks it should be capitalized), you can call FindFirstFile() with the path as a mask, then take the full name of the found file. If the path is invalid, then you won't get a canonical name, natually.