#Include <Array.au3>
#Include <File.au3>
Dim $a = "a" , $b = "b"
Local $aPath = (@scriptdir&"\aa")
DirCreate ($aPath)
DirCreate ($aPath&"\a")
DirCreate ($aPath&"\b")
DirCreate ($aPath&"\c")
Local $name = _FileListToArray($aPath)
_ArrayDisplay($name, $aPath&"下有")
If $name <> 0 Then
For $i = 1 to $name[0]
If $name[$i] <> $a and $name[$i] <> $b Then
MsgBox(0,"","你要删掉"&$name[$i])
EndIf
Next
EndIf
DirRemove($aPath,1)