lsakizada Posted April 26, 2008 Share Posted April 26, 2008 how to find hidden directory? And how to set it visible too? Thanks Be Green Now or Never (BGNN)! Link to comment Share on other sites More sharing options...
lsakizada Posted April 27, 2008 Author Share Posted April 27, 2008 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)! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now