//创建多层目录 procedure MkDirMulti(sPath: string); begin if('\'=sPath[Length(sPath)]) then begin sPath :=Copy(sPath, 1, Length(sPath)-1); end; if (Length(sPath)<3) or DirectoryExists(sPath) then begin Exit; end; MkDirMulti(ExtractFilePath(sPath )); try MkDir(sPath); except end; end;
发表于 @ 2009年06月05日 17:47:00 | 评论( loading... ) | 编辑| 举报| 收藏