'con' folder in WINDOWS

Have you ever tried to create a folder at any place in windows of name 'con'?... If not, try it now.......

Can we create 'con' folder in windows? If yes then how. and if not then why?



and the ANSWER is YES as well as NO


We cannot create con folder normally but can create the folder by following a special route too.

Why we cannot create con folder in windows
--------------------------------------------------------

we cannot create any folder by naming it as 'con'. The main reason behind the same is windows follows the rules and regulations of its previous version. Earlier when windows was not there, we all were using DOS operating system. Windows also follows the rule of the same too

'con' was basically used in DOS for "console"

as it was essential for DOS, 'con' was moved to the list of reserved words which we can't use to name any file, folder

Although beside 'con' there are some other reserved words to which windows is following from DOS and cannot be used to name folders or files. Some other reserved names are:-
♦ AUX  -  auxillary device, usually a serial port

♦ NUL  -  Bit bucket device
♦ LPT1 - First Parallel printer port
♦ PRN  - System list device, a parallel port

♦ COM1 - First serial communication port
♦ Drive letter (A: to Z:) and much more



Whenever we will try to use any one name from reserved word list, the name of that folder or file will automatically revert to default, g i.e. its previous one.

Moreover, when we try to name a file of a file of notepad, wordpad, paint or any other, we will generally recieve an error message windows similar to the window which is shown following
Reserved name warning

Now a question occur if it is restriction of windows then is there any way to break it? The answer is YES. As we also find out the way for the same although we are Zealous Engineers.

It can be done by entering some sequence of commands via the command prompt also known as cmd to circumvent the restrictionsof the window OS. Although it is not preferred as it maycause other problems and it is not advisable, especially for untrained and inexperienced users of windows.......

The way to crack this restriction is given below

- Start>run>cmd
- enter "md \\.\d:\con" without quotes
it will create con folder in d: partition 

when you will be able to create con folder you might be confused to use this folder i.e. copy anything to this or remove

to copy:-
- open cmd
- copy \\.\d:\con
it will copy contents from source address to con folder situated in d:

But in cmd you cannot change directory to con folder
to see list of files in con folder use following command
    - open cmd
    - dir \\.\d:\con

At last to delete folder named as con which cannot be deleted normally can be deleted as
    - open cmd
    - del -r \\.\d:\con      
    - type 'y' then enter
    - rd \\.\d:\con


Now the question may arrise to your mind that how it is happening 
Actually we are using the concept of UNC path.
UNC (Universal Naming Convention) describe the comman syntax to describe network resource shared file, directory, or printer. Although this method of creation of con folder will not exist in pur DOS OS. It can be used in windows with no error. The syntax for the same is

\\remotehost\sharefolder\resource
      |                |__________|
      |                           |
      |                          V
      |                        path
     V
Computer name/IP Address

The major question arrises here as now we are not having process on remote host then how this command make sense?

The "." in the command "\\.\d:\con" represents the local server. Now, we are pointing to our own computer as we have all the privillages on every folder to our computer.

now last question may arrise that now why con is not reserved word? the answer for the same is there is no console taken in remote host control. As a result we can create the same

At last. How is it????.....
Reply your views by leaving your comments so that we can post accordingly to your needs as too much things are still waiting to reveal..........

Atlast, We want to say, enjoy your study or work by being More practical as much as u can by breaking all the engineers boundaries although we are ZEALOUS ENGINEERS....................

0 Response to "'con' folder in WINDOWS"

Post a Comment