用delphi自己的控件filelistbox,directorylistbox就可以呀,很简单的,只要设置一下就能指定目录的

解决方案 »

  1.   

    http://www.csdn.net/expert/topic/842/842864.xml?temp=.5980799api帮助我有,发给你啊
      

  2.   

    这是我写的程序里的一段代码:
    uses FileCtrl;var
      vSR: TSearchRec;
      vFileAttrs: Integer;
    begin
      vFileAttrs := faAnyFile;  if FindFirst(vCleanPath + '*.*' , vFileAttrs, vSR) = 0 then
      begin
        DeleteFile(vCleanPath + vSR.Name);
        while FindNext(vSR) =0 do
        begin
          DeleteFile(vCleanPath + vSR.Name);
        end;
      end;
    end;--你可以把vCleanPath 替代成你的路径!
    vSR.Name就是目录名,或文件名!!
      

  3.   

    我要函数的,或调用windows自己的Api的