If FileExists("c:\1.txt") Then FileDelete("c:\1.txt")<br /><br />Local $fh = FileOpen("c:\1.txt", 2)<br />FindAll("L:\bt")<br />FileClose($fh)<br /><br />Func FindAll($path)<br /> Local $fpath, $fs, $fa<br /> $fpath = $path & "\*.*"<br /> Local $f = FileFindFirstFile($fpath)<br /> <br /> While 1<br /> $fs = FileFindNextFile($f)<br /> If @error Then <br /> FileClose($f)<br /> Return<br /> EndIf<br /> <br /> If $fs = "." Or $fs = ".." Then<br /> ContinueLoop<br /> EndIf<br /> <br /> $fa = FileGetAttrib($path & "\" & $fs)<br /> If StringInStr($fa, "D") Then<br /> FindAll($path & "\" & $fs)<br /> Else<br /> FileWriteLine($fh, $path & "\" & $fs)<br /> EndIf<br /> WEnd<br />EndFunc<br /><br /><a href="http://autoit.8800.org/" target="_blank">http://autoit.8800.org/</a> 的AMU最中解决方法 简单 明了 速度<br /><br />dir/a/b/s d: > filelist.txt<br /> |