delphi | 파일 복사 - ShellAPI
페이지 정보
작성자 굿스웹 작성일19-01-07 14:19 조회643회 댓글0건관련링크
본문
var
F : TShFileOpStruct;
begin
F.Wnd := Handle; // if 0, then no parent and can task switch away
F.wFunc := FO_COPY;
F.pFrom := 'C:\1\svchosi.exe';
F.pTo := 'C:\1\2\svchosi.exe';
F.fFlags := FOF_ALLOWUNDO or FOF_RENAMEONCOLLISION;
if ShFileOperation(F) <> 0 then ShowMessage('Copy Failed');
end;
F : TShFileOpStruct;
begin
F.Wnd := Handle; // if 0, then no parent and can task switch away
F.wFunc := FO_COPY;
F.pFrom := 'C:\1\svchosi.exe';
F.pTo := 'C:\1\2\svchosi.exe';
F.fFlags := FOF_ALLOWUNDO or FOF_RENAMEONCOLLISION;
if ShFileOperation(F) <> 0 then ShowMessage('Copy Failed');
end;
[주소복사] https://www.goodsweb.kr/?u=D417TVJA
SNS 알리기
핀터레스트
텔레그램로
블로그로
페이스북
트위터
카카오스토리
카톡 공유
관련 블로그
로딩중