create a wait

October 18, 2010 at 07:54:10
Specs: Windows XP
how do you do a wait for 30 sec with out a loop the boggs and proc down

@echo off
set _1flag=0
set _2flag=%1


:3
set /a _1flag=%_1flag%+1
set s1_time=%_time:~6,2%


:1
set _time=%time%
set s2_time=%_time:~6,2%

if "%s1_time%"=="%s2_time%" (
goto :1
) else (
goto :2
)
:2
if "%_1flag%"=="%_2flag%" (
goto :4
) else (
goto :3
)

:4
pause


See More: create a wait

Report •


#1
October 18, 2010 at 08:04:49
ping 1.1.1.1 -n 1 -w 30000


=====================================
Life is too important to be taken seriously.

M2


Report •

#2
October 18, 2010 at 10:59:36
Alternatively:
echo WScript.Sleep(30000) > #.vbs
#.vbs
del #.vbs

How To Ask Questions The Smart Way


Report •

#3
October 19, 2010 at 04:46:45
can vbs run with out program to lunch it in XP AND UP

Report •

Related Solutions

#4
October 19, 2010 at 06:46:27
VBScript (or JScript) requires either WScript or CScript (in much the same way batch files require CMD or Command). Both of which have been included with Windows in some incarnation since Win98.

How To Ask Questions The Smart Way


Report •

Ask Question