我是这样写的,倒是提示成功了,但指定路径并没有保存过的文件,是savedialog1没找到源路径吗?弄不明白了。savedialog1.FileName:=Trim(RzShellList1.ShellListData[RzShellList1.ItemFocused.Index].FileName; if savedialog1.Execute then begin Showmessage('保存成功!'); end;
savedialog1只能选定到文件,文件夹就别用savedialog1了 判断是否为文件夹 if DirectoryExists(ShellTreeView1.Path) then 是文件夹,然后特殊处理
if savedialog1.Execute then
begin
Showmessage('保存成功!');
end;
判断是否为文件夹
if DirectoryExists(ShellTreeView1.Path) then 是文件夹,然后特殊处理