我想通过“工具”>“管理自定义工具”>“新建”打开带有所选更改列表的 URL
Application: cmd.exe
Arguments: /c start https://myserver.org?query=%c^¶m=value
它不会将 %c 替换为 Changelist Number 并在 query= 之后剪切 url。我怀疑它不能替换字符串中的 %c 。如果我输入 #CL 而不是 %c 它会正确打开。
我有使用 python 脚本的工作解决方案
import webbrowser
import sys
webbrowser.open("https://myurl.org?query={0}¶m=value".format(sys.argv[1]))
还有一个 P4 自定义工具
Application: C:\Program Files (x86)\Python 3.5\python.exe
Arguments" d:\openurl.py %c
我想知道如何在没有 python 作为依赖项的情况下做到这一点。