在 windows 中为 cleartool 创建别名
Create an alias for cleartool in windows
我想知道如何在 windows 中为 cleartool
创建别名。
在 Linux 中,它非常简单(别名)。
如何在 Windows 中为 cleartool
设置别名?
您可以使用 doskey:
doskey ct=cleartool $*
您可以将这个想法推广到其他 ClearCase 命令:
doskey ct=cleartool $*
doskey mt=multitool $*
doskey credmap="C:\Program Files\Rational\ClearCase\etc\utils\credmap.exe" $*
doskey creds="C:\Program Files\Rational\ClearCase\etc\utils\creds.exe" $*
还有 (from this thread):
To have instances of cmd.exe
automatically load your doskey aliases: (this might be XP specific)
- Create a macro file. (ex:
doskey /macros > c:\some\dir\my_macros.txt
)
- Create the following registry entry:
hkey_current_user\software\microsoft\Command Processor
with a value of:
Autorun = %systemroot%\system32\doskey.exe /macrofile=c:\some\dir\my_macros.txt
我想知道如何在 windows 中为 cleartool
创建别名。
在 Linux 中,它非常简单(别名)。
如何在 Windows 中为 cleartool
设置别名?
您可以使用 doskey:
doskey ct=cleartool $*
您可以将这个想法推广到其他 ClearCase 命令:
doskey ct=cleartool $*
doskey mt=multitool $*
doskey credmap="C:\Program Files\Rational\ClearCase\etc\utils\credmap.exe" $*
doskey creds="C:\Program Files\Rational\ClearCase\etc\utils\creds.exe" $*
还有 (from this thread):
To have instances of
cmd.exe
automatically load your doskey aliases: (this might be XP specific)
- Create a macro file. (ex:
doskey /macros > c:\some\dir\my_macros.txt
)- Create the following registry entry:
hkey_current_user\software\microsoft\Command Processor
with a value of:
Autorun = %systemroot%\system32\doskey.exe /macrofile=c:\some\dir\my_macros.txt