Getting actual file name (with proper casing) on Windows

前端 未结 7 1001
暗喜
暗喜 2020-12-05 19:29

Windows file system is case insensitive. How, given a file/folder name (e.g. \"somefile\"), I get the actual name of that file/folder (e.g. it should return \"SomeF

7条回答
  •  遥遥无期
    2020-12-05 19:54

    There is another solution. First call GetShortPathName() and then GetLongPathName(). Guess what character case will be used then? ;-)

提交回复
热议问题