raju9020 :
Hello, i have created one folder with the command prompt named "con" but by mistake i have dropped a folder of mine in that "con" folder. so i am not able to delete folder "con" with the command prompt. which shows error that it "file not empty". suggest me how to delete the folder con by first empting the folder.
LOL it is a artifact from the old DOS days. AUX, CON, and several other names have a special meaning to a Microsoft Operating system. For compatibility reasons Microsoft had to keep these names in each generation of OS that they produced.
-Later, Microsoft filtered out the creation of the names from the graphic UI but not from the command prompt. (remove them can break old .bat or cmd files)
Basically, these devices route control to a hardware device and any file extension is ignored. con = console files like con.txt also mean console
others if I remember are AUX, com, lpt, I think there were 8 of them.
-any file with these reserved file names will be sent to the device driver when they are copied, moved. Really screws up poorly written back up files.
you need to rename any folder that is using a reserved name or you will get
"crazy" results. like you copy a file and it goes to your old com (serial port)
rather than where you wanted it to go. or it goes to you con device (screen) in your case.
- it can be a pain to remove the name from the file system. Do yourself a favor and rename the directory before you attempt to remove it with utility.