- 人气:
- 放大
- 缩小
- 二维码
- 赞赏
delphi 文件夹拷贝子文件及文件夹
function TForm1.CopyPath(BasePath,TargetPath:string):Boolean;
var
i:Integer;
cmd:string;
begin
cmd:='echo d | Xcopy '+BasePath+' '+TargetPath+' /s/e';
ShowMessage(cmd);
i:=ShellExecute(Handle,nil,'cmd.exe',PChar('/K '+cmd),nil,SW_HIDE);
if i>32 then Result:=True else Result:=False;
end;