Jump to content

How to find hidden directory?

Recommended Posts


Func FindHiddenDirs($Path)
    $handle = FileFindFirstFile($Path & "\*")
    While 1
        $file = FileFindNextFile($handle)
        If @error Then ExitLoop
        $attrib = FileGetAttrib($Path & "\" & $file)
        If StringInStr($attrib, "D") = 0 Then ContinueLoop
        FindHiddenDirs($Path & "\" & $file)
        If StringInStr($attrib, "H") = 0 Then ContinueLoop
        ;MsgBox(0, "Hidden Dir", $Path & "\" & $file, 0)
        ConsoleWrite($Path & "\" & $file & @CRLF)
EndFunc   ;==>FindHiddenDirs

see FileSetAttrib in the help file

Great! realy helped me. Have a best one!

Be Green Now or Never (BGNN)!

Link to comment
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...