请问有没有判断文件路径是否合法的函数?如果有的话是哪个函数

解决方案 »

  1.   

    貌似没有。只有判断文件是否存在的函数:PathFileExists
      

  2.   

    PathFileExists Function--------------------------------------------------------------------------------Determines whether a path to a file system object such as a file or directory is valid.SyntaxBOOL PathFileExists(          LPCTSTR pszPath
    );
    ParameterspszPath
    [in] A pointer to a null-terminated string of maximum length MAX_PATH that contains the full path of the object to verify.
    Return ValueReturns TRUE if the file exists, or FALSE otherwise. Call GetLastError for extended error information.
      

  3.   

    Windows 当然不会给你提供这样的API了,需要根据自己的需求写个程序。
    很简单,相信难不倒你的!
      

  4.   

    Windows 当然不会给你提供这样的API了,需要根据自己的需求写个程序。
    很简单,相信难不倒你的!