Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.
@echo off
mode con:cols=40 lines=2
echo BJNNAHQT4YRV57GITREWQ88|clip
cls
echo Wireless Password copied to clipboard.
timeout 2 > NULL

How do I make timeout not print any text?

share|improve this question
    
It is recommended not to publish both your wireless password and your coordinates... –  grawity Apr 30 '12 at 20:13
add comment

1 Answer

up vote 2 down vote accepted

You may need to redirect both stdout and stderr:

timeout 2  >NUL  2>NUL

Note that the special device is NUL or NUL:, with a single L.

share|improve this answer
2  
you can also redirect stderr to stdout: timeout > nul 2>&1 –  jftuga Apr 30 '12 at 20:05
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.