摘要: 一个抓屏的函数,在其它Blog上看到的[代码] 阅读全文
posted @ 2009-05-27 23:52 novel 阅读(428) 评论(0) 推荐(0)
摘要: 最近用C#做一个根据自定义条件Search file 的工具, 查找相关方面的资料:function GetFilenames(FilePath,ExtMask: String):TStrings; //遍历目录var FileRec :TSearchrec;begin if DirectoryExists(FilePath) then begin if FilePath[Length(FileP... 阅读全文
posted @ 2009-05-27 23:11 novel 阅读(481) 评论(0) 推荐(0)
摘要: 转自:http://hi.baidu.com/rarnu/blog/item/c186e1dde2e9d6ea77c638d4.html以往删除目录时,都需要先用递归删干净目录下的文件和子文件夹,这样做的时候,如果文件数量大,那么删除会非常慢于是找了个方便一点的方法,直接使用API将目录删除代码如下:function DelDirectory(const Source: string): bool... 阅读全文
posted @ 2009-05-27 23:04 novel 阅读(230) 评论(0) 推荐(0)
摘要: //判断文件是否存在 FileExists//判断文件夹是否存在 DirectoryExists//删除文件 DeleteFile; Windows.DeleteFile//删除文件夹 RemoveDir; RemoveDirectory//获取当前文件夹 GetCurrentDir//设置当前文件夹 SetCurrentDir; ChDir; SetCurrentDirectory//获取指定驱... 阅读全文
posted @ 2009-05-27 22:52 novel 阅读(282) 评论(0) 推荐(0)