Here’s an interesting one…. Can you create a folder in windows with name ‘con’..? Try it…
I know you can’t create… Yes… Not only ‘con’.. You can’t create a folder with names CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9… Because these are reserved keywords in Dos… These reserved system names go all the way back to the early days of Dos where con was used for file operations such as copying.
ie copy con c:\myfolder\myfile.txt d:\back\myfile.txt
But don't ever let anyone tell you it's IMPOSSIBLE…
There actually is a way to create a folder named con or with any other reserved named, but it would be a useless folder..
Go to command prompt and type
md \\.\c:\con
Now try copying or moving something into it. You won't be able to. You'll get an "access denied" message. You'll soon realize you don't want this folder anymore and you'll try to delete it, only to find, that it won't delete. You'll get a "cannot find specified file" error message.
But don't worry. We can delete it easily… Type
rd \\.\c:\con
and the con folder will be deleted…
Now just challenge someone to create a folder named CON…
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment