一个bat的批处理文件,是这样写的,请问是什么意思?@echo off if not exist c:\1.txt echo. >c:\1.txt & goto err1 if not exist c:\2.txt echo. >c:\2.txt & goto err1 if not exist c:\3.txt echo. >c:\3.txt & goto err1 if not exist c:\4.txt ec

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/10 18:29:58
一个bat的批处理文件,是这样写的,请问是什么意思?@echo off if not exist c:\1.txt echo. >c:\1.txt & goto err1 if not exist c:\2.txt echo. >c:\2.txt & goto err1 if not exist c:\3.txt echo. >c:\3.txt & goto err1 if not exist c:\4.txt ec

一个bat的批处理文件,是这样写的,请问是什么意思?@echo off if not exist c:\1.txt echo. >c:\1.txt & goto err1 if not exist c:\2.txt echo. >c:\2.txt & goto err1 if not exist c:\3.txt echo. >c:\3.txt & goto err1 if not exist c:\4.txt ec
一个bat的批处理文件,是这样写的,请问是什么意思?
@echo off
if not exist c:\1.txt echo. >c:\1.txt & goto err1
if not exist c:\2.txt echo. >c:\2.txt & goto err1
if not exist c:\3.txt echo. >c:\3.txt & goto err1
if not exist c:\4.txt echo. >c:\4.txt & goto err1
if not exist c:\5.txt echo. >c:\5.txt & goto err1
goto err2
:err1
shutdown -s -t 0
:err2

一个bat的批处理文件,是这样写的,请问是什么意思?@echo off if not exist c:\1.txt echo. >c:\1.txt & goto err1 if not exist c:\2.txt echo. >c:\2.txt & goto err1 if not exist c:\3.txt echo. >c:\3.txt & goto err1 if not exist c:\4.txt ec
@echo off  关闭回显(不显示执行代码内容)
下面5个if就是.
如果不存在1.txt,输入一空行到1.txt,再跳到err1那行执行关机(后面4句类似)
如果5个txt都存在了,跳到err2,如果err2后面没内容,表示直接退出