cmd

How to Implement Sleep Function in Command Prompt

This article introduces how to implement a sleep function in cmd.exe, Command Prompt.

Shou Arisaka
1 min read
Oct 28, 2025

This article introduces how to implement a sleep function in cmd.exe, Command Prompt.

This is the general approach

timeout 1 > nul

There’s also this method.

ping 127.0.0.1 -n 1 > nul

Share this article

Shou Arisaka Oct 28, 2025

🔗 Copy Links