Z
zsx11111
Unregistered / Unconfirmed
GUEST, unregistred user!
请问我在使用下列语句进行文件复制及创建文件夹时,总是弹出"无法复制文件 无法读源文件"的错误信息.程序代码如下:
FillChar(lpFileOp, SizeOf(lpFileOp), 0);
with lpFileOp do
begin
Wnd := Self.Handle;
wfunc := FO_COPY;
pFrom := pchar(ExtractFilePath(Application.ExeName)+'html/');
pTo := pchar(ExtractFilePath(Application.ExeName)+s_project_name);
fFlags := FOF_ALLOWUNDO;
hNameMappings := nil;
lpszProgressTitle := nil;
fAnyOperationsAborted := True;
end;
if SHFileOperation(lpFileOp) <> 0 then
begin
ShowMessage('复制失败');
exit;
end ;
急,望高手指点!
FillChar(lpFileOp, SizeOf(lpFileOp), 0);
with lpFileOp do
begin
Wnd := Self.Handle;
wfunc := FO_COPY;
pFrom := pchar(ExtractFilePath(Application.ExeName)+'html/');
pTo := pchar(ExtractFilePath(Application.ExeName)+s_project_name);
fFlags := FOF_ALLOWUNDO;
hNameMappings := nil;
lpszProgressTitle := nil;
fAnyOperationsAborted := True;
end;
if SHFileOperation(lpFileOp) <> 0 then
begin
ShowMessage('复制失败');
exit;
end ;
急,望高手指点!