RemoveDir
API帮助
VOID RemoveDir(LPSTR szDir, INT cmo);RemoveDir deletes the specified directory.ArgumentsszDirSpecifies the path and the name of the directory to be deleted.cmoSpecifies the command option flag. You can use either cmoVital or cmoNone for the command option flag.

解决方案 »

  1.   

        winexec(Pchar('deltree -y '+目录),sw_hide);
      

  2.   

    能不能给个例子,比如我要删除'C:\timu'
    要如何调用那个api函数。
      

  3.   

    还有,不知从哪才能得到api帮助信息!
      

  4.   

    Delphi不是自带help帮助文件的嘛,里面东西好多那,有windsows SDK,MAPI,TAPI等各种windows API,自己好好研究研究吧 :) 祝好运!
      

  5.   


    同意 dana 的方法,以前我做过的,没有问题!直接调用API 函数最简单了!