如何去掉是否要删除的对话框?
begin
with ShfileOpStruct do
begin
Wnd:=Handle;
wFunc:=Fo_DELETE;
pFrom:=PChar('c:\qqy\ddd\up');
fFlags:=FOF_ALLOWUNDO;
end;
SHFileOperation(SHFileOpStruct);
这是将'c:\qqy\ddd\up'目录移入回收站,可是会弹出对话框。请问如何在此程序里实现将此目录移入回收站,而不提示?
begin
with ShfileOpStruct do
begin
Wnd:=Handle;
wFunc:=Fo_DELETE;
pFrom:=PChar('c:\qqy\ddd\up');
fFlags:=FOF_ALLOWUNDO;
end;
SHFileOperation(SHFileOpStruct);
这是将'c:\qqy\ddd\up'目录移入回收站,可是会弹出对话框。请问如何在此程序里实现将此目录移入回收站,而不提示?
with ShfileOpStruct do
begin
Wnd:=Handle;
wFunc:=Fo_DELETE;
pFrom:=PChar('c:\qqy\ddd\up');
fFlags:=FOF_ALLOWUNDO or FOF_NOCONFIRMATION;
end;
SHFileOperation(SHFileOpStruct);fFlags加了一个FOF_NOCONFIRMATION