I am not aware of any way to lock access to a folder directly using command prompt, but there are alternative similar methods.
There is an excellent post on the "Computer Tips From A Computer Guy" weblog, that details how to make a folder work as a link to the Control Panel (locked), or simply open and show the contents (unlocked). His method involves using a batch file to change windows reference to the folder.
He also provides an alternative method using a 3rd party freeware application called Free Hide Folder, which hides the folder completely, the only way to restore it is open the application and provide a password.
Practically you can not lock the folder.. Yes you can set the password for the folder using DOS command but it is unusable for windows..
The COPY command
first of all u create a folder then use: attrib -h <foldername> to hide it. u can also lock folder using dos by usin number key ...
RD command is used to remove a directory (folder).
At the dos prompt (c:>), type md then a space, then the name of the folder you want to create. Example md foldername
Creates a new directory or folder.
RD command is used to remove a directory (folder).
CD..
It's the System folder. But if you are looking for windows/dos commands you'll find them in the Command folder
The MS-DOS 7 External Commands(Programs in the Windir\COMMAND folder)Table of Contents (the Programs)attrib choice command debug
open command prompt start --> run --> CMD go to the particular folder with commad "cd <space> folder name" enter the below command "dir >> list.txt" it will create a list.txt file in the same folder
You can do it by using "chkdsk" command.
In Dos-just write (DEL Folder Name) this command will delete all the Files inside that folder,then write (RD Folder Name) This will Remove your Folder. Remember both command contain Same folder name. Which you want to Delete.(DEL)command is used to delete Files. (RD) command is used to delete Folder