Sign in to follow this  
Followers 0
lsakizada

How to find hidden directory?

2 posts in this topic

how to find hidden directory?

And how to set it visible too?

Thanks


Be Green Now or Never (BGNN)!

Share this post


Link to post
Share on other sites



FindHiddenDirs("C:")
Exit

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)
    WEnd
    FileClose($handle)
EndFunc   ;==>FindHiddenDirs

see FileSetAttrib in the help file

Great! realy helped me. Have a best one!


Be Green Now or Never (BGNN)!

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  
Followers 0