How do I send a program’s output to a NULL device?

John Savill

January 8, 2000

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A. If you want to suppress a program’s output, you can use the NULL device (as you would use UNIX's /dev/null command). To make a program output to the NULL device instead of the screen, enter the following command.

program.exe > nul

You can also use the nul command if you want to blank a file, as the following example shows.

copy nul file.name

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like