Use the Team Foundation Lock Action to lock a set of files against check in or check out.
Working Folder
Specify a working folder for the action. The working folder specifies the context for the Team Foundation server, project and repository (working folders can be configured in Visual Studio or with the Options, or a specific folder for the action.
Files and Directories to Lock
Specify a list of files and directories to lock. Put each file/directory on a new line. Use wildcards (*) to specify groups of files.
Lock type
The action can be locked against checkins from other workspaces, or against both checkins and check outs.