Monday, April 03, 2006

Lots of stories read about folders or files with names CON, PRN, AUX, NUL etc cannot be created in Windows as these are reserved names for DOS devices.
But there is a way to go around to create folders with these names.
(If you REALLY REALLY want it by that name)

STEP1: goto command prompt

STEP2: type in prompt c:\> "mkdir \\.\c:\NUL"

STEP3: verify by typing "dir \\.\c:\NUL"

STEP4: delete the file or folder "rmdir \\.\c:\NUL"

\\.\ <-- this lets the windows know that the name NUL used is not the name for DOS devices but instead it is used for creating a Windows directory.


Sudipta said...

hey rohit, thanks for visiting my blog. didn't know you had one too :)
anyway how are things going with you? Enjoying 'airtight'?

Steve said...

That format is also required for accessing COM ports above a certain number, I can't remember which, though. Maybe 10 or 11. At least is used to be.

At my last job, I was using a DigiBoard to access 8 serial ports, and some of the higher numbers wouldn't work. I may have found the workaround on the MS site, since it was for a Windows app.

Post a Comment