首页 | 本学科首页   官方微博 | 高级检索  
     检索      

Visual C++改变文件和文件夹属性的方法
引用本文:陈美莲.Visual C++改变文件和文件夹属性的方法[J].佳木斯大学学报,2002,20(1):102-107.
作者姓名:陈美莲
作者单位:湛江海洋大学计算中心 广东湛江524088
摘    要:文件的属性包括文件的产生修改和访问时间以及读写隐现等,在DOS下文件的属性可以用DOS命令加以修改,在WINDOWS下,可以通过右键的属性变一组文件和文件夹的读写属性,但是却不能够改文件的产生修改和访问时间,并且不能够修改子目录下的文件和文件夹的属性,本文基于Windows的API设计了通用的文件和文件的属性(包括文件的产生修改和访问时间以及读写隐现等)的修改方法,并实现了其VisualC 程序编码。

关 键 词:VisualC++  文件  文件夹  属性  产生时间  修改时间  访问时间  读写隐现  DOS  程序设计
文章编号:1008-1402(2002)01-0102-06
修稿时间:2001年11月28

TO CHANGE THE ATTRIBUTES OF APPOINTED FILE AND FOLDER WITH VISUAL C++
CHEN Mei-lian.TO CHANGE THE ATTRIBUTES OF APPOINTED FILE AND FOLDER WITH VISUAL C++[J].Journal of Jiamusi University(Natural Science Edition),2002,20(1):102-107.
Authors:CHEN Mei-lian
Abstract:The file's attributes include the time when it is created, modified and accessed, its being read and written, concealed and shown. They can be modified by DOS command under DOS. But under WINDOWS, the read-write properties can be changed by the properties shown on the right key while the file's creation, modification and access time can't, nor can the properties of files and folders under subdirectory. Based on the Windows' API, the article contrives the modification methods of the properties of common files and folders, including the file's creation, modification and access time as well as it's being concealed or shown, and achieves the Visual C++ program coding.
Keywords:file  folder  read-write  property  creation time  modification time  access time
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号