Results 1 to 3 of 3

Thread: Create CON Folder

  1. #1
    Join Date
    Jul 2005
    Posts
    12

    Thumbs up Create CON Folder

    Hey ,

    Is anybody able to create folder name "con" on C:// of local Windows machine ?

    If yes , then try to Delete it ...Any reasons ???


    Regards ,
    Saurabh ...

  2. #2
    Join Date
    Jul 2006
    Posts
    2

    Thumbs up Create & delete a folder or file named CON

    A file or Folder named "con" can be created and can be deleted...

    Steps:

    1)goto command prompt

    2) type in prompt c:\> "mkdir \\.\c:\con"

    3)verify by typing "dir \\.\c:\con" or by "dir con*.*"

    4)delete the file or folder "rmdir \\.\c:\con"

    Reason Why:

    DOS had a number of reserved names for devices. Some represented actual physical devices, such as PRN for the printer and CON for the console (represented by the keyboard or screen, depending upon I/O mode), and others logical devices, such as NUL. In the case above, we are not allowed to create any folder with reserved keyword, or name any file with reserved keyword as suffix or file name body (examples are aux.c, file.aux, NUL.txt). "trying to access a filesystem object called 'con'," you're basically trying to _open_ the console device. When used as an input, the CON device is the keyboard; as an output, it is the screen.

    For Example:
    the command "copy setup.log con" will cause the contents of setup.log to be displayed on the screen. CON in this case is the output device. Conversely,
    "copy con testfile.txt This is a testfile." (hit Ctrl-Z to mark end of file, then enter)
    1 file(s) copied.

    results in a text file named "testfile.txt," containing, "This is a tesfile."




  3. #3
    Join Date
    Nov 2005
    Posts
    23

    Default

    Hey!!

    Interesting.. but what does this "\\.\" means in dos in that command ?

    mkdir \\.\c:\con

    For instance, when linking to a local file using the "file:" URL scheme, the syntax is of the form "file:///C:/...", where "file://" is the standard prefix, and the third '/' represents the root of the local system.

    Does it means \\remotehost\drive:\con ?
    Any idea guys??

    Thank you.
    Jayesh.M.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •