1. In Microsoft Windows, the file path uses \ , we need two \\ because
strPath = "D:\\Program Files\\Microsoft Office\\Office15"
2. In Linux, the file path is
strPath = "//home //Michael//workspace//hello.cpp"
the root directory starts /
原文:https://www.cnblogs.com/sarah-zhang/p/12128396.html