DOS学习(2)

  1. 设置控制台颜色 color
  2. 显示文本文件内容 type test1.txt
  3. 重定向/复制内容到 type test1.txt > test2.txt
  4. 打开某个程序 start 程序
  5. 打开title为othercmd的控制台 start “othercmd”
  6. 路径中有空格,要加双引号 start “D:\test 3\test.exe”
  7. 打开顺序 .exe > .bat > .cmd
  8. 创建后台程序 start /b test.bat
  9. 复制A文件到目录B copy A B
  10. 泛指 *, 复制txt文件到目录B copy *.txt B
  11. /y 不使用确认提示
  12. 文件拼接到目录B copy 1.txt+2.txt B
  13. 加密文件到mps3到目录B copy 1.mp3 + 1.txt B
  14. 显示命令本身 echo on
  15. 不显示命令本身 echo off
  16. 不显示当前行的命令
  17. 显示内容 echo 内容

猜你喜欢

转载自blog.csdn.net/mafucun1988/article/details/85987050