标题: 10秒自动关闭批处理
[打印本页]
作者: noshoj
时间: 2007-8-27 19:54
标题: 10秒自动关闭批处理
@echo off
echo ============= 批处理过程 ================
echo.
SET wait=ping -n 2 0 ^>^nul
for /l %%n in (9,-1,0) do (
title 最后的话 [%%n 秒后自动关闭]
%wait%)
exit
作者: long626201
时间: 2007-8-27 23:26
这个好像用不到吧
作者: xiagege
时间: 2007-9-9 20:57
标题: 2222222222222222222222
好东西
作者: ruinedone
时间: 2007-9-10 09:32
看了下。共同进步。
作者: 67411666
时间: 2007-10-14 16:36
我正找这东西
作者: HAT
时间: 2007-10-15 07:11
不错,呵呵。
作者: JIANHUILAI
时间: 2008-1-13 09:26
好啊,好的不的了
作者: JIANHUILAI
时间: 2008-1-13 19:26
好!!!
作者: dslz666
时间: 2008-7-23 19:52
好呀,不错,可以用在一些批处理上面,
作者: 523066680
时间: 2008-7-23 20:32
这个时间好像不太精准哦……
看看我这个超标准的1秒钟等待
@echo off
echo %time%
set /a End=%time:~7,1%%time:~9,2%+100
:loop
if %time:~7,1%%time:~9,2%==%End% (goto end) else (goto loop)
:end
echo %time%
pause
作者: laohiog
时间: 2008-7-24 20:50
Quote: |
Originally posted by 523066680 at 2008-7-23 08:32 PM:
这个时间好像不太精准哦……
看看我这个超标准的1秒钟等待
@echo off
echo %time%
set /a End=%time:~7,1%%time:~9,2%+100
:loop
if %time:~7,1%%time:~9,2%==%End% (goto end ... |
|
请问如果我要用这个做10秒等待的怎么改?