boost::filesystem::path p("C:\Windows\System");//这里实际上不会访问文件系统的内容以及路径,仅仅是一个字符串而已
TRACE("%s\n",p.root_name().string().c_str());//这里输出C:
TRACE("%s\n",p.root_directory().string().c_str());//返回"\"
TRACE("%s\n",p.root_path().string().c_str());//返回"C:\"
TRACE("%s\n",p.relative_path().string().c_str());//Windows\System
TRACE("%s\n",p.parent_path().string().c_str());//C:\Windows
TRACE("%s\n",p.filename().string().c_str());//System boost::filesystem::path p("C:\Windows\System