#include <File.au3>
#include <String.au3>
Global $InDir = "D:\driver backup\", $ToDir = "C:\Temp\", $i, $j
$aFileList = _FileListToArray($InDir)
For $i = 1 To $aFileList[0]
If StringInStr(FileGetAttrib($InDir & $aFileList[$i]), "D") Then
DirCopy($InDir & $aFileList[$i], $ToDir & $aFileList[$i], 1)
Else
FileCopy($InDir & $aFileList[$i], $ToDir & $aFileList[$i], 1 + 8)
EndIf
$j += 1
ToolTip("请稍等" & _StringRepeat(" .", $j) & @CRLF & " 正在复制文件中!", @DesktopWidth - 200, @DesktopHeight - 150, "温馨提示:", 1, 1)
If $j >= 6 Then $j = 1
Sleep(100)
Next
不是特别完美,但能凑合用
|