N
no1
Unregistered / Unconfirmed
GUEST, unregistred user!
我的程序也编译在e:/share目录下,用下面的事件在删除e:/share/rep目录时出错<br>提示为:无法删除文件:文件系统错误(1026)<br>procedure TForm1.Button1Click(Sender: TObject);<br>var T:TSHfileOpStruct;<br> s:string;<br>begin<br> s:='e:/share/rep';<br> if directoryexists(pchar(s)) then<br> begin<br> with T do<br> begin<br> Wnd := 0;<br> wFunc := FO_DELETE;<br> pFrom := pchar(s);<br> pTo := nil;<br> fFlags :=FOF_NOCONFIRMATION;<br> end;<br> SHFileOperation(T);<br> end;<br>end;<br>