Jump to content
Sign in to follow this  

filelist exclude nethood

Recommended Posts


I wrote a littel script to create a filelist incl. subfolders

When I run the script I get an error if the script finds the nethood folder.

Does someone know how to solve this?

_FileList('', 'c:')

Func _FileList($SubDir1, $From)
Local $FileFrom = FileFindFirstFile($From & $SubDir1 & '\*.*')
While 1
  Local $File = FileFindNextFile($FileFrom)
  If @error Then ExitLoop
  ;If $File = 'nethood' then ContinueLoop
   Local $FileName = FileGetLongName($From & $SubDir1 & '\' & $File)
  ConsoleWrite($FileName & @LF)
  If StringInStr(FileGetAttrib($FileName), 'D') Then
   Local $SubDir2 = $SubDir1 & '\' & $File
   _Filelist($SubDir2, $From)
WEnd EndFunc

My scripts: _ConsoleWriteLog | _FileArray2D




Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.