Lock file using below command:
F:\Ranjan>cacls my_test.txt /p everyone:n
Are you sure (Y/N)?y
processed file: F:\Ranjan\my_test.txt
F:\Ranjan>
Unlock file using below command:
F:\Ranjan>cacls my_test.txt /p everyone:f
Are you sure (Y/N)?y
processed file: F:\Ranjan\my_test.txt
F:\Ranjan>
Lock folder using below command:
F:\Ranjan>cacls my_folder /p everyone:n
Are you sure (Y/N)?y
processed dir: F:\Ranjan\my_folder
F:\Ranjan>
Unlock folder using below command:
F:\Ranjan>cacls my_folder /p everyone:f
Are you sure (Y/N)?y
processed dir: F:\Ranjan\my_folder
F:\Ranjan>
Comments