Friday, April 15, 2011

How to Turn Off Screen Output in Console

Not long ago we received a letter with the following question:
How to make a command not to type anything while its execution? I tried CLS but it makes nothing...
Though our award-winning batch files editor Dr.Batcher allows you to create scripts very easy, it still doesn't let you just check a box to turn screen output off (we'll implement this feature one day, we promise). So you should use the following instruction:
ping 127.0.0.1 > nul
Of course, you can use any command you like, not only 'ping'. The main trick is '> nul'. It redirects the output from console to... nowhere! So you won't see anything except the command's name and given parameters themselves.

No comments:

Post a Comment

Translate