How to Lock a Folder in Windows Using Cmd! (2024)

Introduction: How to Lock a Folder in Windows Using Cmd!

In this tutorial, I'm going to show you how to lock a file or folder in CMD!

Disclaimer: Using the program attached or using the commands incorrectly could lead to all files being locked and an unusable machine. By downloading the program, using the commands used in this tutorial, or reading on, you agree that the maker is not responsible for any damage/malfunction to your machine or data loss

tags: lock folder, lock folder in windows, lock folder Windows, lock folder in CMD, lock file, hide file, hide folder in Windows, lock file in Windows, lock folder Windows, lock file in CMD, lock file in command prompt, lock folder in command prompt

Step 1: Method 1: Download My Program

Download the attached file and run it. If you are not comfortable doing this or you want to strictly use the command prompt only, proceed to Method 2, which is located at step 10.

Step 2: Run the File

We're first going to lock a file. Run the program and type "L" to lock and enter

Step 3: Type the Name of the File

Now type the name of the file. My test file is named testdoc.txt. Make sure to add the file extension. If you don't know the file extension, go to "view" and click the box shown in the photo

Step 4: Type the Path of the File

Now type the path of the same file. My testdoc.txt is located at c:\Users\Michael\Desktop\Cool\testdoc.txt.

Step 5: Comfirm Path

Now confirm that the path is correct. If it is not, type "N" to start again. NOTICE: If the path is incorrect, files may be locked and may not be able to be unlocked. ALSO: Typing C:\ or C:\windows or C:\Users ect. will lock you out of your computer! SO DON'T DO THIS! But, as long as the path only specifies the folder or file, you have nothing to worry about.

Step 6: Now Your File Has Been Locked and the Icon Has Been Changed to a "No Symbol"

If you want to see the original file, click view then click the box shown in the picture. Upon running either the hidden file or the shortcut, you will see that it is locked and is accessible!

Step 7: Unlocking the File or Folder

Now open the program again, and type "U" to start unlocking. If you want to prevent others from unlocking the files, hide the program that you downloaded in a separate folder.

Step 8: Type the Name of the Locked File or Folder

Now type the name of the file. We're unlocking testdoc.txt.

Step 9: Type the Path of the Locked File or Folder

Now type the path of the same file. My testdoc.txt is located at c:\Users\Michael\Desktop\Cool\testdoc.txt. After that hit enter and your file or folder is unlocked!

Step 10: Method 2: Using Commands in CMD

Open the cmd by typing the windows key+r and type "cmd" or in the search box in windows or click the start button and search for cmd.

Step 11: Locking

To lock your file or folder type cacls "File Path" [/t] /e /p everyone:n. The /t is used to lock all folders and files within a folder. My file is located at C:\Users\Michael\Desktop\Cool\testdoc.txt, so I will type cacls "C:\Users\Michael\Desktop\Cool\testdoc.txt" /e /p everyone:n.

Step 12: Now Your File Is Locked

Now the file or folder is locked. Upon opening, you will see that it won't open.

Step 13: Unlocking

To unlock your file or folder type cacls"File Path" [/t] /e /p everyone:f. You must use the [/t] if you used it before. My file is located at C:\Users\Michael\Desktop\Cool\testdoc.txt, so I will type cacls "C:\Users\Michael\Desktop\Cool\testdoc.txt" /e /p everyone:f.

Step 14: Done!

Now you know how to lock and unlock files and folders using the cmd! Make sure to share this with friends!

How to Lock a Folder in Windows Using Cmd! (2024)
Top Articles
Bank of Canada holds rate steady but warns more increases are possible — even as markets bet they're done - Wowplus.net
Reseña de MultiBank – Broker de Forex y CFD ECN
Omega Pizza-Roast Beef -Seafood Middleton Menu
Craigslist Houses For Rent In Denver Colorado
Methstreams Boxing Stream
Research Tome Neltharus
1movierulzhd.fun Reviews | scam, legit or safe check | Scamadviser
Seething Storm 5E
Dr Lisa Jones Dvm Married
Miles City Montana Craigslist
Mail Healthcare Uiowa
Flat Twist Near Me
Miami Valley Hospital Central Scheduling
Animal Eye Clinic Huntersville Nc
Oro probablemente a duna Playa e nomber Oranjestad un 200 aña pasa, pero Playa su historia ta bay hopi mas aña atras
Vcuapi
Craftology East Peoria Il
Find Such That The Following Matrix Is Singular.
Puretalkusa.com/Amac
Missouri Highway Patrol Crash
Homeaccess.stopandshop
All Breed Database
Sef2 Lewis Structure
If you have a Keurig, then try these hot cocoa options
Naval Academy Baseball Roster
پنل کاربری سایت همسریابی هلو
Gma' Deals & Steals Today
Waters Funeral Home Vandalia Obituaries
Why comparing against exchange rates from Google is wrong
Kristen Hanby Sister Name
15 Downer Way, Crosswicks, NJ 08515 - MLS NJBL2072416 - Coldwell Banker
Google Jobs Denver
Family Fare Ad Allendale Mi
Dallas City Council Agenda
Scanning the Airwaves
Latest Nigerian Music (Next 2020)
Cranston Sewer Tax
Encompass.myisolved
My Locker Ausd
Emily Tosta Butt
Tattoo Shops In Ocean City Nj
Frontier Internet Outage Davenport Fl
3500 Orchard Place
Lesson 5 Homework 4.5 Answer Key
18 Seriously Good Camping Meals (healthy, easy, minimal prep! )
Jimmy John's Near Me Open
Deshuesadero El Pulpo
Game Akin To Bingo Nyt
De Donde Es El Area +63
Best brow shaping and sculpting specialists near me in Toronto | Fresha
Duffield Regional Jail Mugshots 2023
Latest Posts
Article information

Author: Fr. Dewey Fisher

Last Updated:

Views: 5729

Rating: 4.1 / 5 (62 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Fr. Dewey Fisher

Birthday: 1993-03-26

Address: 917 Hyun Views, Rogahnmouth, KY 91013-8827

Phone: +5938540192553

Job: Administration Developer

Hobby: Embroidery, Horseback riding, Juggling, Urban exploration, Skiing, Cycling, Handball

Introduction: My name is Fr. Dewey Fisher, I am a powerful, open, faithful, combative, spotless, faithful, fair person who loves writing and wants to share my knowledge and understanding with you.