Why folder con cannot be created




















COM1 to 9 — first serial communications port. LPT1 — first parallel printer port. LPT2- second parallel printer port and etc. COM2- second serial communication port and etc. You are commenting using your WordPress. You are commenting using your Google account. You are commenting using your Twitter account. You are commenting using your Facebook account. Notify me of new comments via email. Notify me of new posts via email. This site uses Akismet to reduce spam. Trying to do this in Windows 7 results in an error:.

CON is a reserved name in Windows. As previously stated. My advice though is to just use a different name. It would be very difficult to always refer to it via its absolute path, especially if you are developing an app you plan on deploying. This is because it is used to represent the "internal devices".

However, you can create this folder using the following command in a command prompt:. This folder can't be deleted via right click, delete. You have to use the following command again in a command prompt :. Extending Pablo Santa Cruz's answer , here is the full list of keywords that are used by Windows internally and are reserved. As with all Windows filenames, the following are case insensitive.

Source: The specified device name is invalid at Microsoft Docs. Just like there are characters that cannot be used in a filename , there are also several words whole filenames that cannot be used because they are reserved. Any access to an object with a reserved device name is treated as referring to the device specified by that name, unless you use the aforementioned namespace workaround.

These errors occur because Windows is attempting to operate on them as if they were normal folders, but you can't open a device named NUL , CON , or otherwise as a folder—hence the Incorrect function error which is similar to the Inappropriate ioctl for device error on Linux. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group.

Create a free Team What is Teams? Learn more. Ask Question. Asked 11 years, 10 months ago. Active 1 year, 3 months ago. Download Article Explore this Article methods. Tips and Warnings. Related Articles. Author Info Last Updated: October 13, Method 1. First off, use the numbers on the number pad, not the ones at the top of the keyboard.

Create a new folder. Name it "Con" but don't press enter yet. Method 2. Press the fn key and press the letter keys k-i-i to make use of the number pad. Method 3. The folder has been created. Name it "Con," but don't press enter yet. Hold down Alt and type on the number pad, then press enter.

Yes No. Not Helpful 23 Helpful Not Helpful 1 Helpful 7. Nuttapong Punpipat.



0コメント

  • 1000 / 1000