- 设置控制台颜色 color
- 显示文本文件内容 type test1.txt
- 重定向/复制内容到 type test1.txt > test2.txt
- 打开某个程序 start 程序
- 打开title为othercmd的控制台 start “othercmd”
- 路径中有空格,要加双引号 start “D:\test 3\test.exe”
- 打开顺序 .exe > .bat > .cmd
- 创建后台程序 start /b test.bat
- 复制A文件到目录B copy A B
- 泛指 *, 复制txt文件到目录B copy *.txt B
- /y 不使用确认提示
- 文件拼接到目录B copy 1.txt+2.txt B
- 加密文件到mps3到目录B copy 1.mp3 + 1.txt B
- 显示命令本身 echo on
- 不显示命令本身 echo off
- 不显示当前行的命令
- 显示内容 echo 内容
DOS学习(2)
最新推荐文章于 2024-10-06 19:58:42 发布