VS2005中,access对只读目录的属性判断不准确
来源:互联网 发布:水流量计算软件 编辑:程序博客网 时间:2024/05/06 05:31
只读目录,
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对只读目录的属性判断不准确
- Reachability判断的不准确 检测网络
- 对指定的表设置只读属性
- 如何去掉Access的只读属性之解药
- TextView属性 (不准确)
- duilib 修复CTreeViewUI复选功能判断不准确的bug
- VC删除只读属性文件、判断文件是否存在、判断路径是文件或目录
- Python 中去除文件的只读属性
- IE中只读的innerHTML属性
- 对 Len() 函数所得结果不准确的处理
- jquery mobile navbar: 对click事件的响应不准确
- 批处理去掉所有目录的隐藏系统只读属性
- eclipse中准确定位到项目的本地目录
- cxGrid中对列属性的判断和转换笔记
- CHtmlView中,判断一个页面加载完成的准确方法
- 只读属性的赋值
- vs2005 MFC编程对CheckBox添加事件提示“代码元素**是只读的"的可行解决办法
- Mysql中通过Like匹配中文不准确的解决办法
- 新购新书(2009.9)
- window 多线程机制
- Struts的配置详解(1)
- GridView中的超级链接
- 学生组织的openGL小组讨论会感言
- VS2005中,access对只读目录的属性判断不准确
- oracle 触发器全扫描
- 学习中层次的观点给我带来的好处
- 二. 软件工程
- 数字水印学习系统之三 DWT操作
- Java学习的30个目标
- QQ 农场 数据分析
- JSP的配置
- 无限期免费使用nod32的方法