c36 Posted September 5, 2016 Share Posted September 5, 2016 How i can access to a hidden folder using the FileExists function? A quick solution consist in .. first show the folder copy the file and finally hide it But i dont want to reveal the folder .. so how it can be done without it (attrib) ? If Not FileExists("E:\hidden\info.txt") Then MsgBox(0,"!","Please put your generated password and then hide the folder") Else MsgBox(0,"!","Done") EndIf Thanks Link to comment Share on other sites More sharing options...
l3ill Posted September 5, 2016 Share Posted September 5, 2016 I just tested this with Hidden folder, works fine... Windows 7 Ultimate 64 bit My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
pluto41 Posted September 5, 2016 Share Posted September 5, 2016 Local $strDirectory = "C:\Temp\hidden" Local $strFile = "\info.txt" FileSetAttrib ( $strDirectory, "+H", 0 ) ; hide directory FileSetAttrib ( $strDirectory & $strFile, "+H", 0 ) ; hide the file If Not FileExists ($strDirectory & $strFile) Then MsgBox (0,"!","Please put your generated password and then hide the folder") Else MsgBox (0,"!","Done") EndIf Also here on Windows XP not problem with your code. It runs fine.. I've added the FileSetAttrib() function for fun. 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