打印

[投票] 看见2个重起的P处理,不懂

本主题由 bk7477890 于 2008-9-9 09:43 关闭

看见2个重起的P处理,不懂

本人新手 问一下 .
@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

里面的 err1     :err2
   什么意思啊  还有
@echo off
start cmd
%0

里面的 %0  什么意思啊  百度查不到

TOP

%0就是本身,在里面就是运行自己。
err1在里面就是关机命令,是标志
我也看不懂~~啥叫p处理~~

TOP

if not exist :如果不存在

shutdown -s -t 0立刻关机

%0自身:举例del %0

err1在这里指shutdown -s -t 0

err2结束

Processed in 0.039979 second(s), 6 queries, Gzip enabled