<p>What is the equivalent of <code>/dev/null</code> on Windows?</p>

I think you want
```
NUL
```
, at least within a command prompt or batch files.
For example:
```
```
type c:\autoexec.bat > NUL
```
```
doesn't create a file.
(I
believe
the same is true if you try to create a file programmatically, but I haven't tried it.)
In PowerShell, you want
```
$null
```
:
```
```
echo 1 > $null
```
```