procedure TForm1.shViewAddFolder(Sender: TObject; AFolder: TShellFolder;<br> var CanAdd: Boolean);<br>var<br> s:string;<br>begin<br> s:=copy(afolder.PathName,length(afolder.PathName)-2,length(afolder.PathName));<br> if UpperCase(s)='EXE' then<br> canadd:=true<br> else<br> canadd:=false;<br>end;