B
blueberry
Unregistered / Unconfirmed
GUEST, unregistred user!
var shellinfo: TSHFileOpStructA;<br> with shellinfo do<br> begin<br> Wnd:=handle;<br> wFunc:=FO_COPY;<br> pFrom:=PChar(files);<br> pTo:=PChar(destination);<br> fFlags:=FOF_SIMPLEPROGRESS or FOF_RENAMEONCOLLISION;<br> end;<br> SHFileOperation(shellinfo);<br><br>copy文件abc.exe,如果abc.exe已存在,<br>将会被换名为复件(1)abc.exe,或复件(2)abc.exe诸如此类,<br>我怎么能得到copy后真正的文件名呢?<br><br>第一次发问,请多帮忙