Show Menu
主题×

Folder.lock and workspace.lock files

在Data Workbench安装目录的Workspaces文件夹中,folder.lock文件指定是否锁定该特定文件夹中的工作区,而工作区名称。lock文件指定是否锁定特定工作区。
当锁定整个文件夹时,您可以在 Workspaces 文件夹级别或子文件夹(选项卡)级别锁定它们。您还可以锁定或解除锁定所有的文件夹(在 Workspaces 文件夹级别),然后指定特定子文件夹(使用 folder.lock 文件)或特定工作区(使用​ 工作区名称 .lock 文件)的例外情况。
The following example of the Profile Manager highlights three elements:
  • 主 Workspaces 文件夹对应的 folder.lock 文件
  • A Monthly Numbers.lock file for the Monthly Numbers.vw workspace file
  • Workspaces\Custom 子文件夹对应的 folder.lock 文件
In this example, the Workspaces folder.lock file is set to locked, which locks all of the workspaces in this instance of Data Workbench. Workspaces\ 子文件夹 folder.lock 文件被设置为已解锁,这将解除锁定“Custom自定义”选项卡上的所有工作区。最后,Monthly Numbers.lock 文件被设置为已锁定,这将锁定 Monthly Numbers 工作区。

创建 .lock 文件

您可以使用 new folder.lock 或中的 Create menu 选项创建 Profile Manager 文件 Workspaces Manager。 You also can create a folder.lock or workspace name .lock file by copying and pasting an existing .lock file to the appropriate folder, changing the name of the file (for workspace name .lock files only), and changing the setting in the file if necessary.
创建新的 folder.lock 文件
  1. 在Data Workbench中,通过在工 Workspaces Manager 作区中右键单击并单击 Manage > Profile >打开 Workspaces Manager
  2. 单击您想要创建 folder.lock 文件的文件夹。
  3. In the User column for that folder, right-click in the cell and click Create > folder.lock . 将出 new folder.lock 现文件。 New folder.lock 默认情况下,文件设 # “已解锁”。
  4. (可选)如果您需要更改文件中的设置:
    1. 右键单击该文件的复选标记。
    2. 单击 Open > in Notepad . The folder.lock file opens.
    3. Change the setting to # .
    4. 保存并关闭该文件。
  5. To make this the setting for all users working with the same working profile, right-click the check mark for the file and click Save to > < working profile name > .
根据新文件中的设置,该文件夹中的工作区现已锁定或解锁。
从现有文件中创建 .lock 文件
  1. 在或 Profile Manager 中, Workspaces Manager右键单击现有文件的复选标记, .lock 然后单击 Copy
  2. In the User column for the folder into which you want to paste the .lock file, right-click in the cell and click Paste .
  3. If this file is used to lock an individual workspace, right-click the check mark for the .lock file in the User column and change its name in the File field to match the name of the workspace that you want to lock.
    For example, to lock the Monthly Numbers.vw workspace, you would name the file “ Monthly Numbers.lock.”If this file is used to lock an individual workspace, right-click the check mark for the .lock file in the User column and change its name in the File field to match the name of the workspace that you want to lock. For example, to lock the Monthly Numbers.vw workspace, you would name the file “ Monthly Numbers.lock.”
  4. 若要更改文件中的设置:
    1. 右键单击该文件的复选标记。
    2. 单击 Open > in Notepad . The .lock file opens.
    3. Change the setting to # or # .
    4. 保存并关闭该文件。
  5. To make this the setting for all users working with the same working profile, right-click the check mark for the file and click Save to > < working profile name > .
根据新文件中的设置,选定工作区现已锁定或解锁。