<$BlogRSDUrl$> <body style="background-color: #FEFCF1"><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d6395693\x26blogName\x3dmordant+wit\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dTAN\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttps://mordantwit.blogspot.com/search\x26blogLocale\x3den_US\x26v\x3d2\x26homepageUrl\x3dhttp://mordantwit.blogspot.com/\x26vt\x3d-11873617807163903', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>
Google
 
Web mordantwit.blogspot.com

October 13, 2005

 

aNiaz discussion: Folder Name limitations! 


Someone discovered that nobody can create a folder anywhere named as "con"
I tried it in a couple of directories it seems to be true!

FarrukhW:
Also folder with "prn" name. It was discovered by Farrukh

MehreenJ:
The following reserved device names cannot be used as the name of afolder.

CON, PRN, AUX, CLOCK$, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8,COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9.

FarrukhW:
actually these are reserved dos devices names.

FarrukhW:
Well, there is a method for creating such named folders :)

FaisalF:
Farrukh you found the method of creating "con" folder in desktop. What is the script?
Farrukh is supposed to be making scripts. This was a joke if most of you didn't get it :P

MuddassirA:
I think this should at least give an error of reseved name. The thing about it is that it doesn't show any error message like the one that is shown when you put in invalid character in the name.
spoken like a true software developer!!!

AliA:
i dont want to create such named folders
The most practical answer from the most unexpected source!

FarrukhW:
Try this at your command prompt:

mkdir \\.\c:\con
Or
mkdir \\.\c:\com1

You can change the path to whatever location

FarrukhW:
Plus..
Once these are created, you can't remove these in normal windows folder deletion method. You have to use

RD \\.\c:\con

ZulfiqarM:
Yeah it should say something like
" is a reserved folder name that has been carried over because of the perpetual presence of legacy dos code within the current NT kernel. Please specify another filename"


Hmm... that's one typical aNiaz session at our workplace! When people get going, it's hard to stop. Like I say "Opinions are like assholes! Everyone has one! And they all stink!"



 
 
Comments: Post a Comment

This page is powered by Blogger. Isn't yours?