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

6 lines
149 B
Batchfile
Raw Permalink Normal View History

2013-04-11 01:07:29 -07:00
@echo off
set /p MilliSeconds=Enter the number of milliseconds to sleep:
echo Sleeping ...
ping -n 1 -w %MilliSeconds% 1.2.3.4 >nul 2>&1
echo Awake!