Answer the question
In order to leave comments, you need to log in
How to close a folder for viewing in Windows Explorer, but be able to write and read files in the folder through Python?
It is required to close the ability to edit files through Explorer for the current user, but be able to do this through Python for the current user. Is it possible?
Answer the question
In order to leave comments, you need to log in
It is possible if you run the script on behalf of a user who has write permissions to this file. And so no.
Write a driver for the file system. Run it and restrict access to the desired file or directory to everyone except the process with the python script. =)
you can’t do this with standard Windows tools, you can only manage permissions for users, and if you disable the view permission, then the recording will be guaranteed to be disabled. Set a password to access the folder.
Watch this video:
- How to set a password on a folder or file on a Windows 10, 8 or 7 computer: https://youtu.be/Xh5Rr3MrTl4
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question