使用自定义标题从快捷方式调用cmd

edd*_*yuk 1 windows cmd

我有一个cmd.exe的快捷方式.

从此快捷方式运行时,是否可以更改cmd窗口标题?

kev*_*kev 7

C:\> cmd /k "title MyWindow"
Run Code Online (Sandbox Code Playgroud)
`cmd /K`      => Carries out the command specified by string but remains
`title [str]` => Specifies the title for the command prompt window.
Run Code Online (Sandbox Code Playgroud)


a_h*_*ame 5

我不认为这是可能的.您需要创建一个批处理文件的快捷方式,该文件使用您的自定义窗口标题运行cmd.exe,如下所示:

start "MyWindow" cmd.exe
Run Code Online (Sandbox Code Playgroud)