What is the DOS equivalent of 1>/dev/null? It should be >NUL on both DOS and Windows console. You can use like this command >nul: 2>nul: