Possible Duplicate:
Unable to rename a folder or a file as ‘con’
I tried crating a folder with the name CON in Windows, but I couldn't crate it in any of the hard drives.
What could be the reason? Is it possible to create such a folder?
I tried crating a folder with the name CON in Windows, but I couldn't crate it in any of the hard drives. What could be the reason? Is it possible to create such a folder? | |||
|
feedback
|
This question came from our site for professional and enthusiast programmers.
This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.
|
It's a reserved name from the old MS-DOS days. You couldn't create filenames the same as MS-DOS driver names, and this still stands in today's versions of Windows. See the following Microsoft article for the list of other reserved names. http://support.microsoft.com/kb/74496/en-us In any case this is a question for superuser.com. | |||
|
feedback
|
|
as previously stated. it's a reserved word from back in MS-DOS, for the CONsole device (as far as i can remember). but, you can force windows/dos to create the folder for you. for devices, it uses the format
for example, to create CON folder on my desktop,
to delete the folder, you have to reference it the same way, or else it won't work.
my advice though is to just use a different name. it would be very difficult to always refer to it via its absolute path, especially if you are developing an app you plan on deploying. | ||||
|
feedback
|