WINAPI--路径相关

    xiaoxiao2021-03-25  100

    PathRemoveFileSpec

    移除文件名。 “C:\TEST\sample.txt”–>C:\TEST

    PathRemoveExtension

    移除文件扩展名. “C:\TEST\sample.txt”–>C:\TEST\sample

    PathRemoveBackslash

    移除路径末尾的反斜杠\。 “c:\a\b\File\” --> c:\a\b\File

    PathFileExists

    判断文件是否存在。

    PathIsDirectory

    PathIsDirectoryEmpty

    PathRenameExtension

    #include <shlwapi.h> #pragma comment ( lib," Shlwapi.lib" )

    转载请注明原文地址: https://ju.6miu.com/read-19271.html

    最新回复(0)