T
T
TigerSHARC2020-10-12 18:45:49
Python
TigerSHARC, 2020-10-12 18:45:49

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

3 answer(s)
S
Sergey Karbivnichy, 2020-10-12
@hottabxp

It is possible if you run the script on behalf of a user who has write permissions to this file. And so no.

H
Hemul GM, 2020-10-12
@HemulGM

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. =)

M
Mikhail Miroshnichenko, 2020-10-12
@hetmansoftware

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 question

Ask a Question

731 491 924 answers to any question