VS2005中,access对只读目录的属性判断不准确
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了VS2005中,access对只读目录的属性判断不准确,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2384字,纯文字阅读大概需要4分钟。
内容图文
只读目录, C:/attrib +A +S +H +R testdir C:/attrib testdir A SHR C:/testdir (1)VC6.0的执行结果: ***********test stat*********************** file [c:/testdir] exists! file [c:/testdir] is directory! file [c:/testdir] can be read! file [c:/
只读目录,
C:/>attrib +A +S +H +R testdir
C:/>attrib testdir
A SHR C:/testdir
(1)VC6.0的执行结果:
***********test stat***********************
file [c:/testdir] exists!
file [c:/testdir] is directory!
file [c:/testdir] can be read!
file [c:/testdir] can not be writed!
***********test access***********************
file [c:/testdir] exists!
file [c:/testdir] can not be writed!
file [c:/testdir] can be read!
(2)VS2005的执行结果
***********test stat***********************
file [c:/testdir] exists!
file [c:/testdir] is directory!
file [c:/testdir] can be read!
file [c:/testdir] can not be writed!
***********test access***********************
file [c:/testdir] exists!
file [c:/testdir] can be writed!
file [c:/testdir] can be read!
结论:在VS2005中,使用access判断的只读目录却有【写入】的属性。
有什么高招,欢迎解答。
建议,在VS2005中对文件、目录进行权限校验时,最好不要用access。
内容总结
以上是互联网集市为您收集整理的VS2005中,access对只读目录的属性判断不准确全部内容,希望文章能够帮你解决VS2005中,access对只读目录的属性判断不准确所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。