---
title: "Discussion on \"Why You Can't Name a File 'CON' in Windows?\" | Hashnode"
description: "Discussion on \"Why You Can't Name a File 'CON' in Windows?\". Learn why Windows doesn’t allow you to create files and folders named CON, PRN, AUX, and NUL"
url: "https://hashnode.com/posts/why-you-cant-name-a-file-con-in-windows/60d435a099fab47c98b63985"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Why You Can't Name a File 'CON' in Windows?](https://apoorvtyagi.tech/why-you-cant-name-a-file-con-in-windows?utm_source=hashnode&utm_medium=feed)

Learn why Windows doesn’t allow you to create files and folders named CON, PRN, AUX, and NUL

Jun 24, 2021 · 4 min read · apoorvtyagi.tech  
Updated Dec 4, 2021  
Read the article

-   [#windows](https://hashnode.com/tag/windows)
-   [#general](https://hashnode.com/tag/general)
-   [#hashnode](https://hashnode.com/tag/hashnode)
-   [#programming](https://hashnode.com/tag/programming)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)

## Written by

[Apoorv Tyagi](https://hashnode.com/@apoorvtyagi)

@apoorvtyagi · India

  
[View profile](https://hashnode.com/@apoorvtyagi)

Senior Software Engineer | Tech Blogger | !(Chess GM)

Senior Software Engineer. I write about practical tips and epic stories about my experiences in the field of computer science and engineering!

## Responses 3

Markdown supported · ⌘↵ to post

[Cybear Tron](https://hashnode.com/@CybearTron)

[Jul 29, 2021](https://hashnode.com/posts/why-you-cant-name-a-file-con-in-windows/60d435a099fab47c98b63985/comment/61025c37d3dd5634ae909852)

Wow!! Never knew this.. I was like it is what it is and I have to accept it

[Apoorv Tyagi](https://hashnode.com/@apoorvtyagi)

[Jul 29, 2021](https://hashnode.com/posts/why-you-cant-name-a-file-con-in-windows/60d435a099fab47c98b63985/comment/61025c37d3dd5634ae909852#reply-61025ef72db92534dc934fc2)

I am happy to know that you find something new to learn from this! :)

[Cybear Tron](https://hashnode.com/@CybearTron)

[Jul 29, 2021](https://hashnode.com/posts/why-you-cant-name-a-file-con-in-windows/60d435a099fab47c98b63985/comment/61025c37d3dd5634ae909852#reply-6102a989d3dd5634ae90a4a5)

yep[Apoorv Tyagi](https://hashnode.com/@apoorvtyagi)

[Eddie](https://hashnode.com/@Eddievin)

[Jun 24, 2021](https://hashnode.com/posts/why-you-cant-name-a-file-con-in-windows/60d435a099fab47c98b63985/comment/60d462b412f77505a833baed)

Awesome stuff :)

[Apoorv Tyagi](https://hashnode.com/@apoorvtyagi)

[Jun 24, 2021](https://hashnode.com/posts/why-you-cant-name-a-file-con-in-windows/60d435a099fab47c98b63985/comment/60d462b412f77505a833baed#reply-60d469bd12f77505a833bb95)

Thank you [Eddie Eddie](https://hashnode.com/@Eddievin)

[Sai Ansul](https://hashnode.com/@SaiAnsul)

[Jun 24, 2021](https://hashnode.com/posts/why-you-cant-name-a-file-con-in-windows/60d435a099fab47c98b63985/comment/60d44e0e5ed303057ace8ebc)

Wow, never knew this thing!

[Apoorv Tyagi](https://hashnode.com/@apoorvtyagi)

[Jun 24, 2021](https://hashnode.com/posts/why-you-cant-name-a-file-con-in-windows/60d435a099fab47c98b63985/comment/60d44e0e5ed303057ace8ebc#reply-60d4555d12f77505a833b913)

Thank you [Sai Ansul](https://hashnode.com/@SaiAnsul). I am happy to know you learned something new 😊

[Eleftheria Batsou](https://hashnode.com/@eleftheriabatsou)

[Jun 24, 2021](https://hashnode.com/posts/why-you-cant-name-a-file-con-in-windows/60d435a099fab47c98b63985/comment/60d44e0e5ed303057ace8ebc#reply-60d45ab45ed303057ace90be)

Yeah, I also didn't know that. I tested it, and indeed I couldn't make a file with these names!

Incredible. Thanks [Apoorv Tyagi](https://hashnode.com/@apoorvtyagi)

[Apoorv Tyagi](https://hashnode.com/@apoorvtyagi)

[Jun 24, 2021](https://hashnode.com/posts/why-you-cant-name-a-file-con-in-windows/60d435a099fab47c98b63985/comment/60d44e0e5ed303057ace8ebc#reply-60d469fa12f77505a833bb99)

You're welcome [Eleftheria Batsou](https://hashnode.com/@eleftheriabatsou). Glad you liked it.
