What is the DOS equivalent of 1>/dev/null? [duplic

2019-04-19 12:32发布

This question already has an answer here:

I want to suppress the output of my script running under DOS, similar to the following under a *nix environment:

 $ command 1>/dev/null

How can I do this?

标签: dos dev-null
3条回答
贪生不怕死
2楼-- · 2019-04-19 13:11

Here's an example of using > NUL

copy mfc42d.dll $windir\system32 > nul
regsvr32 $windir\system32\mfc42d.dll /s > nul
查看更多
做个烂人
3楼-- · 2019-04-19 13:17

You can use like this

command >nul: 2>nul:
查看更多
混吃等死
4楼-- · 2019-04-19 13:34

It should be >NUL on both DOS and Windows console.

查看更多
登录 后发表回答