Uses shellapi;<br>//参数自己写,分太少了<br>function MyReNameDir: Boolean;<br>var<br> F:TShFileOpStruct;<br>begin<br> F.wnd:=0;<br> F.wFunc:=FO_RENAME; {操作方式}<br> F.pFrom:=PChar('C:/Temp/Temp' +#0#0);<br> F.pTo:=PChar('C:/Temp/Tempp'+#0#0);<br> F.fFlags:=FOF_SILENT or FOF_NOCONFIRMATION;<br> result:= ShFileOperation(F)=0;<br>end;