批处理命令简介

1 @echo off

echo回显显示,echo off关闭回显显示,@不显示这一行

例子:

1.bat

@echo off
dir

2 call 命令

a.bat文件中调用b.bat文件

例子:

a.bat

echo this is a.bat
call e:\b.bat
echo done

b.bat

echo this is b.bat

运行a.bat可以发现在a运行过程中调用b.bat


3、pause命令

在程序运行中显示暂停消息,并且提示:请按任意键继续。。。。

例子:

a.bat

echo this is a.bat
pause
call e:\b.bat
echo done



posted @ 2014-03-20 22:28  无形的风  阅读(161)  评论(0编辑  收藏  举报