|
项目描述: |
This piece of code will delete a folder that isn't empty in Windows NT or Windows 2000.
The code also takes care of security aspects of the files inside the folder. Before deleting the file it sets the security(on an NTFS filesystem especially), so that it can be deleted by the process that is running it. The code also takes care of any readonly attributes set on the file to be deleted.
This is a recursive function which delete all the directories and files inside the directory which is sent as a command line parameter.
这段代码可以删除Windows NT 或 Windows 2000上非空的目录。代码也考虑了文件夹中的文件的安全性。在删除文件之前,它会设置安全性(尤其在NTFS文件系统中),所以可以由运行它的进程删除这个文件。代码也考虑了要删除文件的只读属性。这是一个递归函数,可以删除一个目录中的所有文件和目录,欲删除的目录作为一个命令行参数给出。
来源: http://www.codeguru.com/files/delete.html |
类别: |
|
发布者:
cbd002
|
|
最新发布源码包 |
软件包 |
版本号 |
日期 |
本地下载 |
delete |
 1.0  |
2004-03-23 |
下载 |
|
|