Fog Creek Software
Discussion Board




Nul Folder

I just found a funny thing in Windows.

Just try to create a folder with the name 'nul'.

Try in Explorer. It does not work.
Try in command prompt:
md nul
Nope, it does not work :)

Your comments? I know it is probably used somewhere internally. But aren't such things a bit unnecessary?

A bad design, may be?

Boris Yankov
Thursday, December 11, 2003

NUL is a device name, similar to COM or LPT.  It's the "bit bucket" device.  Any writes to it go nowhere, and reads from it immediately end.

Ben Combee
Thursday, December 11, 2003

I figure it's the one security feature they built into Windows. ha ha ha ha ha.

www.MarkTAW.com
Thursday, December 11, 2003

Boris,

http://shorterlink.com/?OFCXD4

Seeya

Matthew
Friday, December 12, 2003

This, children, is why DOS should still be taught in school.  =-)

Alyosha`
Friday, December 12, 2003

This brings back fond memories...

copy con autoexec.bat, anyone?

(And, yes, "con" is also a reserved name).

Oren
Friday, December 12, 2003

But do you remember the .sig:
Real programmers use "copy con program.exe"

Brian
Friday, December 12, 2003

*  Recent Topics

*  Fog Creek Home