RosettaCodeData/Task/Sleep/Batch-File/sleep-1.bat

7 lines
149 B
Batchfile
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
@echo off
set /p Seconds=Enter the number of seconds to sleep:
set /a Seconds+=1
echo Sleeping ...
ping -n %Seconds% localhost >nul 2>&1
echo Awake!