Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have been seeking around to get answer to my following question but no relevant information could be found by me. Hope, I could get it here.

First of all, let me be clear. I am using all the thing in windows OS. So answer must be in that domain too.

My basic problem is that I am using python to play around with folder security in windows. I have ended up using pywin32 module but I ended up messing around with ACL(Access Control List) which I could do with regular windows. This is 50% of what I am trying to do.
Now I am trying to hide my folder using this code-

win32api.SetFileAttributes('filename',win32con.FILE_ATTRIBUTE_HIDDEN)

The file is hidden but it is visible(in windows OS) when I used the "show hidden files and folder" option with "Hide protected Operating system Files" . I have seen applications which can hide folder in the way they still could not be seen in the above settings. That is what I want to achieve.

So, please tell me if there is a way in python or any other language to achieve that so that the folder remains hidden even with if the windows "Show hidden files and folder" option is checked?

share|improve this question
Changes are those applications just hook on the WinAPI function that lists directory contents. – AnonymousLurker Aug 13 '12 at 9:53

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.