Skip to main content
Active reading [<http://en.wikipedia.org/wiki/Linux> <http://en.wikipedia.org/wiki/Windows_7>]
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

NUL in windowsWindows seems actullyto be actually a virtual path in any folder. Just Just like .., . in any filesystem.

useUse any folder followed with NUL will work.

ex :Example,

echo 1 > nul echo 1 > c:\nul echo 1 > c:\users\nul echo 1 > c:\windows\nul 

have the same effect as /dev/null in linuxon Linux.

testThis was tested on windows 7Windows 7, 64 bit.

NUL in windows seems actully a virtual path in any folder. Just like .., . in any filesystem.

use any folder followed with NUL will work

ex :

echo 1 > nul echo 1 > c:\nul echo 1 > c:\users\nul echo 1 > c:\windows\nul 

have same effect as /dev/null in linux

test on windows 7, 64 bit

NUL in Windows seems to be actually a virtual path in any folder. Just like .., . in any filesystem.

Use any folder followed with NUL will work.

Example,

echo 1 > nul echo 1 > c:\nul echo 1 > c:\users\nul echo 1 > c:\windows\nul 

have the same effect as /dev/null on Linux.

This was tested on Windows 7, 64 bit.

Source Link
Jerry
  • 1k
  • 8
  • 13

NUL in windows seems actully a virtual path in any folder. Just like .., . in any filesystem.

use any folder followed with NUL will work

ex :

echo 1 > nul echo 1 > c:\nul echo 1 > c:\users\nul echo 1 > c:\windows\nul 

have same effect as /dev/null in linux

test on windows 7, 64 bit