本文整理自网络,侵删。
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;
相关阅读 >>
Delphi10.3构造一个json数据的第二种方法,并格式化输出
Delphi xe android 调试错误:connection closed gracefully
Delphi 利用createservice写与桌面交互的win32服务
更多相关阅读请进入《Delphi》频道 >>