Folder lock - free download folder lock software

The Simple Way to Lock a Folder Using DOS Command

Using DOS Command to Lock Your Folder


As we all know that there are many ways to lock a folder, such as shot cut, using DOS, create a bat file, etc.

As for short cut, you can use your mouse, right click on your desktop and select "New/Shortcut" from the list. When it is done, copy and paste the command rundll32.exe user32.dll, LockWorkStation and click "Next".

You can also choose to label the shortcut before choosing the "Finish" option .

As for creating a bat file, you just open a new Notepad document and copy and paste the command "@echo off rundll32.exe user32.dll, LockWorkStation cls", then save the text file as a bat file and you can run the file by double clicking on it.

Comparing with other methods,using DOS command is the easiest way to lock a folder.

Here are the four steps of using DOS command:

Step 1. Click "Start", "Run" ,then type cmd. When the command prompt opens type "CD C:\Test" (replace "Test" with the name of the folder you want to hide.)

Step 2. Now type "attrib file +s +h¡±"and replace "file" with the name of the actual file name you would like to hide.

Step 3. Now, go back to C:\Test and look for your file or folder and you cannot find it through simply browsing around, the command prompt, or even if you click "Show Hidden Files and Folders".

Step 4. To find the folder and it's contents again, simply go back to the command prompt, type "CD C:\Test" (of course, again replacing "Test" with the name of your folder,) and then type "attrib filename -s -h". You can find your file again!