سؤال

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?

هل كانت مفيدة؟

المحلول

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

نصائح أخرى

You can use like this

command >nul: 2>nul:

Here's an example of using > NUL

copy mfc42d.dll $windir\system32 > nul
regsvr32 $windir\system32\mfc42d.dll /s > nul
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top