following command: C:\>COPY *.TXT A: ^ CHKDSK A: You may put as many commands on the command line as you wish, as long as the total length of the command line
下列批次檔先将“命令提示符”窗口的标题更改为“正在更新文件”,然后执行copy(英语:Copy_(command))命令。在命令执行完成后,使用echo命令显示“文件更新完成”,并将“命令提示符”窗口更改回“命令提示符”。 @echo off title Updating files copy \\server\share\*.txt