@echo off&set FileName=%~n0&shift :: ============================================= :: AutoHelp PlugLab Concept: 2006 by Reatogo :: ============================================= :: Help Info: :: ======================= set Routine_Type=5 :: 1=Getting Data 2=Prompts 3=Getting Files 4=Creating Files 5=General set Routine_Vers=1 set Routine_Date=2007-02-15 set RoutineName=Wait set RoutineAuthor=Siegfried set Using_work_from=Jaclaz set Example_call_1=%%WAIT%% 5 set Example_call_2= set Example_call_3= set text_01=Script waits 5 seconds if "%~1" == "GetHelp" goto :EOF if "%~2" == "" echo.&echo %* :: ============================================= set WaitSeconds=%~1 if "%~1" == "" set WaitSeconds=1 @ping 127.0.0.1 -n 1 -w 1000 >nul @ping 127.0.0.1 -n %WaitSeconds% -w 1000 >nul goto :EOF :: =============================================