windows 编程如何判断如 con, lpt1 这样的文件是否存在?
比如我在 C 盘中建立一个叫做 con 的文件 (别说这不可能, 有款软件就可以做到), 然而使用 PathFileExists 是不能识别该文件的, 请问这种文件应该如何判断存在性呢?
[解决办法]
Naming Files, Paths, and Namespaces
[解决办法]
- C/C++ code
open("con",O_CREAT | O_EXCL,mode); 发布时间: 2012-09-08 10:48:07 作者: rapoo
windows 编程如何判断如 con, lpt1 这样的文件是否存在?
比如我在 C 盘中建立一个叫做 con 的文件 (别说这不可能, 有款软件就可以做到), 然而使用 PathFileExists 是不能识别该文件的, 请问这种文件应该如何判断存在性呢?
[解决办法]
Naming Files, Paths, and Namespaces
[解决办法]
open("con",O_CREAT | O_EXCL,mode);