One hack is to (mis)use the ping command:
ping 127.0.0.1 -n 6 > nul
Explanation:
ping
is a system utility that sends ping requests.ping
is available on all versions of Windows.127.0.0.1
is the IP address of localhost. This IP address is guaranteed to always resolve, be reachable, and immediately respond to pings.-n 6
specifies that there are to be 6 pings. There is a 1s delay between each ping, so for a 5s delay you need to send 6 pings.> nul
suppress the output ofping
, by redirecting it tonul
.
Related Posts:
- How can I set a short timeout with the ping command?
- api-ms-win-crt-runtime-l1-1-0.dll is missing when opening Microsoft Office file [closed]
- How could I ping @here in Discord.py?
- What’s the syntax for mod in java
- STDERR? What is it? What are its common uses?
- Handling file renames in Git
- PermissionError: [Errno 13] in Python
- Why are there two ways to unstage a file in Git?
- ‘git’ is not recognized as an internal or external command
- What are the rules of the std::cin object in C++?
- What is {{.}} in mustache?
- How to split column into two in R using separate
- What does %~dp0 mean, and how does it work?
- Python Key Error=0 – Can’t find Dict error in code
- What is a callback URL in relation to an API?
- Where do I find a list of all mat-icons — Angular
- TypeError : ‘method’ object is not subscriptable
- How do I run a single test using Jest?
- Why I am getting java.lang.AbstractMethodError errors?
- Mercurial: no ~/.hgrc file
- How to clamp an integer to some range?
- What is the iOS 8 System Font?
- difference between ‘-webkit-box-shadow’ & ‘box-shadow’ in css
- Operand type clash: int is incompatible with date + The INSERT statement conflicted with the FOREIGN KEY constraint
- org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect’ not set
- java.io.IOException: Broken pipe
- Moving file using cmd?
- java.util.NoSuchElementException: No line found
- Simple prime number generator in Python
- How to interactively (visually) resolve conflicts in SourceTree / git
- How to get the selected item from a ComboBox in JavaFX?
- Downcasting in Java
- How do I get monitor resolution in Python?
- SQL array flattening: Why doesn’t CROSS JOIN UNNEST join every nested value with every row?
- Function to calculate R2 (R-squared) in R
- SonarQube Runner vs Scanner
- You cannot add or change a record because a related record is required in table ‘table_name’
- Error in glm() in R
- Is there an online application that automatically draws tree structures for phrases/sentences?
- How to extract Month from date in R
- Receiving “message”:”CB-ACCESS-KEY header is required” when attempting to connect to coinbase pro api
- Missing files, DirectX SDK (d3dx9.lib, d3dx9.h)
- how to center form using bootstrap 4
- How to implement OnFragmentInteractionListener
- Error haskell: not in scope. What does that mean?
- Command Prompt Error ‘C:\Program’ is not recognized as an internal or external command, operable program or batch file
- Python High Pass Filter
- How to disable text selection highlighting
- if-not condition fails (jQuery)
- RGBA code for red color
- java array error “array required but int found”
- What does /p mean in set /p?
- How to determine why a Greasemonkey script is not running [duplicate]
- youtube iframe api parameter rel=0 doesn’t work
- How to specify the download location with wget?
- Error: “expected primary-expression before int”
- How do you detect where two line segments intersect?
- What is stdole2.tlb
- In the Fibonacci sequence, is fib(0) 0 or 1 ?
- Using a regex
- Beacon UUID vs BeaconLayout
- Binary Tree Height
- Curl incosistent behaviour – CLI vs Java process
- how to upload a file to my server using html
- In the following SAS statement, what do the parameters “noobs” and “label” stand for?
- Uploaded successfully to Heroku Local but getting 503 error once pushed to Heroku live
- Source Tree doesn’t launch after installation
- Access Default Widget's Controls in Customizer Pane
- can you make changes to a theme in trac while it is waiting for review?
- Create post and update in the same flow [closed]
- Search database with WPDB using a php variable
- Go top smooth function [closed]
- Using Javascript to Set Redirect Page in Contact Form 7
- Change css for certain user roles
- Block any other domains from using my server
- Any benefit or detriment from removing a pagefile on an 8 GB RAM machine?
- How do I view the details of a digital certificate .cer file?
- How do you validate fstab without rebooting?
- DNS – NSLOOKUP what is the meaning of the non-authoritative answer?
- Why can’t a CNAME record be used at the apex (aka root) of a domain?
- How can I upgrade to Java 1.8 on an Amazon Linux Server?
- What port should I open to allow remote desktop?
- Can you help me with my capacity planning?
- Cheat Sheets for System Administrators?
- Amazon EC2 terminology – AMI vs. EBS vs. Snapshot vs. Volume
- How to change an EC2 instance’s security group
- What type of DNS record is needed to make a subdomain?
- Multiple SSL domains on the same IP address and same port?
- IPTABLES – Limit rate of a specific incoming IP
- How to set default Ansible username/password for SSH connection?
- Can I make `find` return non-0 when no matching files are found?
- Proxy Error 502 “Reason: Error reading from remote server” with Apache 2.2.3 (Debian) mod_proxy and Jetty 6.1.18
- What is the difference between service and systemctl?
- Rsync creates a directory with the same name inside of destination directory
- How Often Do Windows Servers Need to be Restarted?
- sudoers: how to disable requiretty per user
- dig show only answer
- SSD or HDD for server
- Do you have any useful awk and grep scripts for parsing apache logs? [closed]