JaIn in der FileFindFirstFile nicht aber später wenn filefindnextfile schon declarird wurde, nämlich so:
Code
$dir = @WindowsDir
$file = FileFindFirstFile($dir&"\*.*")
SplashTextOn("afdg","",400,20,-1,-1,1)
While 1
$filenext = FileFindNextFile($file)
If @error Then ExitLoop
$attr = FileGetAttrib($dir&""&$filenext)
If StringInStr($attr,"D") Then ContinueLoop;"D" = Dir! siehe hilfe! und wenn ordner z.b. versteckt zeigt er dank StringInStr auch ContiuLoop an!
ControlSetText("afdg","","Static1",$filenext)
Sleep(500)
WEnd
SplashOff();nich notwendig aber besser..