如何在 64 位 Windows 7 上将 Clear case 与 Windows 资源管理器集成

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5894889/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 16:48:05  来源:igfitidea点击:

How to integtrate Clear case with Windows explorer on 64 Bit windows 7

windowspluginswindows-7clearcase

提问by Ram

I want to use the Clearcase with Windows 7 so that I can check-in / check-out files from windows explorer.

我想在 Windows 7 中使用 Clearcase,以便我可以从 Windows 资源管理器中签入/签出文件。

Thanks,

谢谢,

Ram

内存

回答by VonC

According to this compatibility matrix, ClearCase7.1+ is supported on windows 7.

根据此兼容性矩阵,Windows 7 支持 ClearCase7.1+。

Once installed, you will be able to access the ClearCase entry added on the Windows Explorer contextual menu.

安装后,您将能够访问添加到 Windows 资源管理器上下文菜单中的 ClearCase 条目。

contextual menu with ClearCase

带有 ClearCase 的上下文菜单

However, the 64-bit version don't always displayed said contextual menu:
see technote swg21251833for Windows 7 workaround:

但是,64 位版本并不总是显示所述上下文菜单:有关 Windows 7 解决方法,
请参阅技术说明 swg21251833

For Windows 7 and Windows 2008 R2, custom menus can be created as described below.

The advantage of these menus is that they are fast, the disadvantage is that they are static (non-contextual):

REGISTRY EDITS:

This solution contains information about modifying the system registry.
Before making any modifications to the Microsoft Registry Editor, it is strongly recommended that you make a backup of the existing registry.
For more information describing how to back up the registry, refer to Microsoft Knowledge Base article 256986

Create a suitable custom menu using the Windows registry such as those listed below.

Note: You may copy the entries below and save in a *.reg file.

Sample registry entries (using Windows Registry Editor Version 5.00):

对于 Windows 7 和 Windows 2008 R2,可以按如下所述创建自定义菜单。

这些菜单的优点是速度快,缺点是它们是静态的(非上下文)

注册表编辑:

此解决方案包含有关修改系统注册表的信息。
在对 Microsoft 注册表编辑器进行任何修改之前,强烈建议您对现有注册表进行备份。
有关描述如何备份注册表的详细信息,请参阅 Microsoft 知识库文章 256986

使用 Windows 注册表创建合适的自定义菜单,如下所列。

注意:您可以复制以下条目并保存在 *.reg 文件中。

示例注册表项(使用 Windows 注册表编辑器 5.00 版):

[HKEY_CLASSES_ROOT\*\shell\ClearCase]
"subcommands"=""

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell]

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd01]
@="Add to Source Control"

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd01\command]

@="C:\Program Files\IBM\RationalSDLC\ClearCase\bin\cleardlg.exe /addtosrc \"%1\""

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd02]
@="Checkout"

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd02\command]
@="C:\Program Files\IBM\RationalSDLC\ClearCase\bin\cleardlg.exe /checkout \"%1\""

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd03]
@="Checkin"

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd03\command]
@="C:\Program Files\IBM\RationalSDLC\ClearCase\bin\cleardlg.exe /checkin \"%1\""

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd04]
@="Uncheckout"

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd04\command]
@="C:\Program Files\IBM\RationalSDLC\ClearCase\bin\cleardlg.exe /uncheckout \"%1\""

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd05]
@="Version Tree"

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd05\command]
@="C:\Program Files\IBM\RationalSDLC\ClearCase\bin\clearvtree.exe \"%1\""

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd06]
@="Properties of Element"

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd06\command]
@="C:\Program Files\IBM\RationalSDLC\ClearCase\bin\cleardescribe.exe \"%1@@\""

Merge the *.regfile (created from step #1) in the Windows registry as shown below:

合并*.regWindows 注册表中的文件(从第 1 步创建),如下所示:

reg file registration

reg文件注册

The ClearCase context menu should now be available:

ClearCase 上下文菜单现在应该可用:

static menu

静态菜单

回答by Tuan

It works on my machine.

它适用于我的机器。

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\ClearCase]
"subcommands"=""

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell]

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd01]
@="ClearCase Explorer"
"Icon"="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\clearexplorer.exe,0"

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd01\command]
@="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\clearexplorer.exe \"%1\""

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd02]
@="Find Checkouts"
"Icon"="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\clearfindco.exe,0"
"CommandFlags"=dword:00000020

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd02\command]
@="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\clearfindco.exe \"%1\""

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd03]
@="Checkout ..."
"Icon"="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardlg.exe,0"
"CommandFlags"=dword:00000020

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd03\command]
@="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardlg.exe  /windowmsg A065 /checkout \"%1\""

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd04]
@="Checkin ..."
"Icon"="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardlg.exe,0"

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd04\command]
@="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardlg.exe /window $activewnd /windowmsg A065 /checkin \"%1\""

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd05]
@="Undo Checkout ..."
"Icon"="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardlg.exe,0"

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd05\command]
@="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardlg.exe /window $activewnd /windowmsg A065 /uncheckout \"%1\""

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd06]
@="History"
"Icon"="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\clearhistory.exe,0"
"CommandFlags"=dword:00000020

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd06\command]
@="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\clearhistory.exe  \"%1\""

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd07]
@="Version Tree"
"Icon"="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\clearvtree.exe,0"

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd07\command]
@="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\clearvtree.exe  \"%1\""

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd08]
@="Compare with Previous Version"
"Icon"="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardlg.exe,0"

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd08\command]
@="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardlg.exe /diffpred \"%1\""

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd09]
@="Properties of Version"
"Icon"="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardescribe.exe,0"
"CommandFlags"=dword:00000020

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd09\command]
@="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardescribe.exe  \"%1\""

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd10]
@="Edit ConfigSepc"
"Icon"="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardescribe.exe,0"
"CommandFlags"=dword:00000020

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd10\command]
@="cleartool edcs"

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd11]
@="Mount VOB..."
"Icon"="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardlg.exe,0"
"CommandFlags"=dword:00000020

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd11\command]
@="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardlg.exe /windowmsg A065 /mount"

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd12]
@="Unmount VOB..."
"Icon"="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardlg.exe,0"

[HKEY_CLASSES_ROOT\*\shell\ClearCase\Shell\Cmd12\command]
@="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardlg.exe /windowmsg A065 /unmount"


[HKEY_CLASSES_ROOT\Directory\shell\ClearCase]
"subcommands"=""

[HKEY_CLASSES_ROOT\Directory\shell\ClearCase\Shell]

[HKEY_CLASSES_ROOT\Directory\shell\ClearCase\Shell\Cmd01]
@="ClearCase Explorer"
"Icon"="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\clearexplorer.exe,0"

[HKEY_CLASSES_ROOT\Directory\shell\ClearCase\Shell\Cmd01\command]
@="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\clearexplorer.exe \"%1\""

[HKEY_CLASSES_ROOT\Directory\shell\ClearCase\Shell\Cmd02]
@="Find Checkouts"
"Icon"="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\clearfindco.exe,0"
"CommandFlags"=dword:00000020

[HKEY_CLASSES_ROOT\Directory\shell\ClearCase\Shell\Cmd02\command]
@="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\clearfindco.exe \"%1\""

[HKEY_CLASSES_ROOT\Directory\shell\ClearCase\Shell\Cmd03]
@="Checkout ..."
"Icon"="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardlg.exe,0"
"CommandFlags"=dword:00000020

[HKEY_CLASSES_ROOT\Directory\shell\ClearCase\Shell\Cmd03\command]
@="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardlg.exe  /windowmsg A065 /checkout \"%1\""

[HKEY_CLASSES_ROOT\Directory\shell\ClearCase\Shell\Cmd04]
@="Checkin ..."
"Icon"="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardlg.exe,0"

[HKEY_CLASSES_ROOT\Directory\shell\ClearCase\Shell\Cmd04\command]
@="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardlg.exe /window $activewnd /windowmsg A065 /checkin \"%1\""

[HKEY_CLASSES_ROOT\Directory\shell\ClearCase\Shell\Cmd05]
@="Undo Checkout ..."
"Icon"="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardlg.exe,0"

[HKEY_CLASSES_ROOT\Directory\shell\ClearCase\Shell\Cmd05\command]
@="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardlg.exe /window $activewnd /windowmsg A065 /uncheckout \"%1\""

[HKEY_CLASSES_ROOT\Directory\shell\ClearCase\Shell\Cmd06]
@="History"
"Icon"="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\clearhistory.exe,0"
"CommandFlags"=dword:00000020

[HKEY_CLASSES_ROOT\Directory\shell\ClearCase\Shell\Cmd06\command]
@="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\clearhistory.exe  \"%1\""

[HKEY_CLASSES_ROOT\Directory\shell\ClearCase\Shell\Cmd07]
@="Version Tree"
"Icon"="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\clearvtree.exe,0"

[HKEY_CLASSES_ROOT\Directory\shell\ClearCase\Shell\Cmd07\command]
@="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\clearvtree.exe  \"%1\""

[HKEY_CLASSES_ROOT\Directory\shell\ClearCase\Shell\Cmd08]
@="Compare with Previous Version"
"Icon"="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardlg.exe,0"

[HKEY_CLASSES_ROOT\Directory\shell\ClearCase\Shell\Cmd08\command]
@="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardlg.exe /diffpred \"%1\""

[HKEY_CLASSES_ROOT\Directory\shell\ClearCase\Shell\Cmd09]
@="Properties of Version"
"Icon"="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardescribe.exe,0"
"CommandFlags"=dword:00000020

[HKEY_CLASSES_ROOT\Directory\shell\ClearCase\Shell\Cmd09\command]
@="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardescribe.exe  \"%1\""

[HKEY_CLASSES_ROOT\Directory\shell\ClearCase\Shell\Cmd10]
@="Edit ConfigSepc"
"Icon"="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardescribe.exe,0"
"CommandFlags"=dword:00000020

[HKEY_CLASSES_ROOT\Directory\shell\ClearCase\Shell\Cmd10\command]
@="cleartool edcs"

[HKEY_CLASSES_ROOT\Directory\shell\ClearCase\Shell\Cmd11]
@="Mount VOB..."
"Icon"="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardlg.exe,0"
"CommandFlags"=dword:00000020

[HKEY_CLASSES_ROOT\Directory\shell\ClearCase\Shell\Cmd11\command]
@="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardlg.exe /windowmsg A065 /mount"

[HKEY_CLASSES_ROOT\Directory\shell\ClearCase\Shell\Cmd12]
@="Unmount VOB..."
"Icon"="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardlg.exe,0"

[HKEY_CLASSES_ROOT\Directory\shell\ClearCase\Shell\Cmd12\command]
@="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardlg.exe /windowmsg A065 /unmount"



[HKEY_CLASSES_ROOT\Drive\shell\ClearCase]
"subcommands"=""

[HKEY_CLASSES_ROOT\Drive\shell\ClearCase\Shell]

[HKEY_CLASSES_ROOT\Drive\shell\ClearCase\Shell\Cmd01]
@="ClearCase Explorer"
"Icon"="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\clearexplorer.exe,0"

[HKEY_CLASSES_ROOT\Drive\shell\ClearCase\Shell\Cmd01\command]
@="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\clearexplorer.exe \"%1\""

[HKEY_CLASSES_ROOT\Drive\shell\ClearCase\Shell\Cmd02]
@="Find Checkouts"
"Icon"="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\clearfindco.exe,0"
"CommandFlags"=dword:00000020

[HKEY_CLASSES_ROOT\Drive\shell\ClearCase\Shell\Cmd02\command]
@="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\clearfindco.exe \"%1\""

[HKEY_CLASSES_ROOT\Drive\shell\ClearCase\Shell\Cmd03]
@="Properties of View"
"Icon"="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardescribe.exe,0"
"CommandFlags"=dword:00000020

[HKEY_CLASSES_ROOT\Drive\shell\ClearCase\Shell\Cmd03\command]
@="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardescribe.exe  \"%1\\""

[HKEY_CLASSES_ROOT\Drive\shell\ClearCase\Shell\Cmd04]
@="Edit ConfigSepc"
"Icon"="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardescribe.exe,0"
"CommandFlags"=dword:00000020

[HKEY_CLASSES_ROOT\Drive\shell\ClearCase\Shell\Cmd04\command]
@="cleartool edcs"

[HKEY_CLASSES_ROOT\Drive\shell\ClearCase\Shell\Cmd05]
@="Mount VOB..."
"Icon"="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardlg.exe,0"
"CommandFlags"=dword:00000020

[HKEY_CLASSES_ROOT\Drive\shell\ClearCase\Shell\Cmd05\command]
@="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardlg.exe /windowmsg A065 /mount"

[HKEY_CLASSES_ROOT\Drive\shell\ClearCase\Shell\Cmd06]
@="Unmount VOB..."
"Icon"="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardlg.exe,0"

[HKEY_CLASSES_ROOT\Drive\shell\ClearCase\Shell\Cmd06\command]
@="C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin\cleardlg.exe /windowmsg A065 /unmount"