本文整理自网络,侵删。
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;
相关阅读 >>
Delphi xe5 使用 android 内置函数几个小测试
Delphi 怎么将一个流转换成字符串?或者将字符串转出一个流
更多相关阅读请进入《Delphi》频道 >>