He is looking for a DOS script to lock a folder.
There are several methods, just Google "lock a folder with DOS script".
Note: You will find several sites that describe how to do this, some tutorials are easier than others. Find one you fully understand before attempting this. But once done, you will find it easy to do again.