Adding Checkout (recursively) to context menu not working

浪尽此生 提交于 2019-12-24 16:16:22

问题


I'm doing like this ..... but i'm not able succeed... For the check out recursively option, do the following:

  1. Start the clearmenuadmin.exe utility (to do this, click Start > Run, and type clearmenuadmin.exe)
  2. In the Object type tab, select the directory object. Choose checked-in as the Object state
  3. Click the new button in the Available menu Choices pane, and then enter the following information in the appropriate fields:
    • Menu Text: Checkout (recursively)...
    • Help Text: Check out the selected item recursively...
    • Command Type: Executable/Regentry
    • Command:
      Software\Atria\ClearCase\CurrentVersion\ContextMenus\CmdLineExe
    • Initial Directory:
      Arguments: /c cleartool find $file -exec "cmd /c cleartool checkout -nc \"%CLEARCASE_PN%\""
    • Comment:

When this is done, you can add this new menu entry to the This menu contents pane by pressing the Add button. Position it as desired with the Move up button. After completing this customization, choose Configuration>Apply to apply the changes. Then you can test it in Windows Explorer.


回答1:


This is one of the so-called ten best scripts
But we need to know what kind or effort you get when testing it.

For example, in this thread:

my test is unsuccessful. I get the following error message:

"Failed to load executable name from registry key 'Softwar\Atria\ClearCase\CurrentVersion\ContextMenus\CmdLineExe', The system cannot find the file specified.
""

Which solves itself with:

Great news, I modified the Menu Item Properties to:

Menu Text: Checkout (recursively)...
Help Text: Check out the selected item recursively...
Command Type: Executable
Command: cmd
Initial Directory:
Arguments: /c cleartool find $file -exec "cmd /c cleartool checkout -nc \"%CLEARCASE_PN%\""
Comment:

And, now both my Check Out (recursively) and Check In (recursively) Context Menu items work - Thank you!



来源:https://stackoverflow.com/questions/2006322/adding-checkout-recursively-to-context-menu-not-working

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!