为命令提示符窗口创建标题。
Syntax
title [<string>]
Parameters
| Parameter | Description |
|---|---|
<string> |
指定要显示为命令提示符窗口标题的文本。 |
| /? | 在命令提示符下显示帮助。 |
Remarks
要为批处理程序创建窗口标题,请在批处理程序的开头包含 标题 命令。
设置窗口标题后,只能使用 title 命令重置它。
Examples
若要在批处理文件执行复制命令时将命令提示符窗口标题更改为“更新文件”,然后将标题返回到命令提示符,请键入以下脚本:
@echo off
title Updating Files
copy \\server\share\*.xls c:\users\common\*.xls
echo Files Updated.
title Command Prompt