Why can't you create a folder named 'con'?

  • Thread starter Thread starter johncena
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 4K views
johncena
Messages
131
Reaction score
1
Can't create folder !

Why we can't create a folder with name 'con' ?
 
Physics news on Phys.org


Because the console (ie keyboard + screen) is called con: and because of some historical features in the way DOS was written you can't have a file with the same name.
You also can't have a file called com1: lpt1: and a couple of others
 


But sir,
After typing 'con' if we type '0160' holding Alt ...we can create the folder ...how is it happening ?
 


Alt+0160 inserts an invisible space character. You will be able to access this folder through the GUI, but software will not be able to find it unless you remember to include the ALT+0160 character in the filename reference.