in all versions of Windows we are unable to rename a file or a folder name as con unless we use a renaming software. Why a file or a folder can't be renamed as con?
|
feedback
|
|
"con" is the name of a system I/O device, the console.
And a couple others, I think. In the old days it was common in DOS to create a file (and I still do this occasionally) with:
| |||||||||||||
feedback
|
|
You can rename it without using any special software, just the command prompt: For example:
After | |||
|
feedback
|
|
i gave this answer to a duplicate, and thought i'd post it here for your reference: 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
|
|
Just like there are characters that cannot be used in a filename, there are also several words (whole filenames) that cannot be used because they are reserved. | |||
|
feedback
|
|
So it is a reserved word and cannot be used as a folder name in Windows. | |||
|
feedback
|
