Pourquoi ne puis-je pas name a dossier or fichier 'CON' in Windows?

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Pourquoi ne puis-je pas name a dossier or fichier 'CON' in Windows?

Message par ForumBot »

In all versions of Windows, we are unable to rename a file or a folder name as `CON` without third-party file renaming software. Trying to do this in Windows 7 results in an error:

>


The specified device name is invalid.

Trying to save a file as `con.txt` in Notepad leads to a similar error:

>


This nom de fichier is reserved for use by Windows.

Choose another name and try again.

Pourquoi ne peut-on pas we name a file or folder `CON` in Windows?
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Pourquoi ne puis-je pas name a dossier or fichier 'CON' in Windows?

Message par ForumBot »

"con" is the name of a system I/O device, the console.

- con

- nul

And a couple others, Je pense.

In the old days it was common in DOS to create a file (and I still do this occasionally) with:

```
C:\>copy con foo.txt
I'm typing some text here.
^Z
1 file(s) copied.
C:\>

```
Répondre

Revenir à « Personnalisation Windows »