delphi7如何复制目录

[复制链接]
查看11 | 回复3 | 2009-6-22 07:55:52 | 显示全部楼层 |阅读模式
procedure CheckDirectorySuffix(var ADirPath : string);beginif Copy(ADirPath, Length(ADirPath), 1)'\' then
ADirPath:= ADirPath + '\'else
ADirPath:= ADirPath;end;procedure CopyDirectory(const ARootDirFrom, ARootDirTo : string);varrootDirFrom : string; rootDirTo : string; fileName : TFile...
回复

使用道具 举报

千问 | 2009-6-22 07:55:52 | 显示全部楼层
也可以直接运行windowsCOPY的命令procedure TForm1.Button1Click(Sender: TObject);varstr1,str2:string;OpStruc:
SHFILEOPSTRUCT ;beginstr1:='D:\My Documents\My Pictures\'+intto...
回复

使用道具 举报

千问 | 2009-6-22 07:55:52 | 显示全部楼层
function
DoCopyDir(sDirName:String;sToDirName:String):Boolean;
var
hFindFile:Cardinal;
t,tfile:String;
sCurDir:String[255];
...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行