Want to lock a folder without using any software / password in Windows, follow these simple steps:
- Go to start> run> cmd
- In command prompt, Type cacls "path_of_folder" /E /P everyone:n
- To regain access type: cacls "path_of_folder" /E /P everyone:f
26 comments
commentsdude i cannot gain access to my folder now please help..
ReplyTo regain access type: cacls "path_of_folder" /E /P everyone:f
Replyit shows
ReplyThe filename, directory name, or volume label syntax is incorrect.
wat shud i do now
it means you have entered the wrong path of the file/folder
Replyyour path must be like it: c:\hacked
i have entered the correct path but still its showing the same message..
Replytrick doesnt succesfully works .
it should work perfectly buddy!! check your command again or mention here what you're entering!!
Reply... mr. author you mean..
Replycalcs file_dir /E /P everyone:no
to activate..
to deactivate..
calcs file_dir /E /P everyone:f ? meaning false?
no = false = 0
maybe try this one..
calcs file_dir /E /P everyone:1
or
calcs file_dir /E /P everyone:y
f means full permissions.
Replyn means no permissions
Icalcs "pathname" /e/p everyone:n
Replyit is saying not successfully proceed.
can help u the correct command.
@bharadwaj: put space between /e and /p like it: cacls "path_of_folder" /E /P everyone:n
ReplyCACLS not ICACIS
Well the post was really helpfull.... Thanks a lot
ReplyWell the post was really very helpfull... Thanks
Replyi am also not gaining my folder again
Replythrough command
cacls foldername /E /P everyone:f(this also doesnot work)
cacls foldername /e/p everyone:f(this also doesnot work)
cacls foldername /e /p everyone:F(this also doesnot work)
what can i do now????
what to do to regain access to logical drive d:
Reply@Anonymous: its not foldername, its folderpath after cacls!!
ReplyI am also not gaining access of my folder.
ReplyInitially I was able to gain access.
But from yesterday I lost access of my locked folder.
I tried cacls "E:\VIVEKSING" /E /P everyone:f many times.
But its not working.
Please tell me as soon as possible. There are urgent files in that folder.
@Viveksing Vijay Chavan: those who are facing problem while regaining access to their folders, contact me via contact form, I will solve their issues via teamviewer or logmein!
ReplyThanks for reading!
how to get contact form?
Reply@Viveksing Vijay Chavan: on the top of the site under menu bar, you will find it!
Replyi wana lock aman foldr in g drive ... then what i should give the command in cmd ... explain plzz....
Replyi wana lock aman games folder in g drive thn plz explain ki kya command du cmd me ..??
Reply@Aashish Sehraya: cacls "D:\aman" /E /P everyone:n
Replyi want to lock a folder picography on my desktop wath should i type cmd
Reply@Kartik Umalkar: use "cd desktop" in cmd firstly to go to desktop location, then follow the above steps! Thanks
Replyi try it again and again please help me
Reply@Anonymous: Hi, can you please specify folder path where are you making changes so I can provide exact command?
ReplyThanks
Thank you for your comment.