Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Creating A Folder Named "CON"; Can It Be Done?

13 Apr 2016   #1
Mulsiphix

Windows 7 Home Premium
 
 
Creating A Folder Named "CON"; Can It Be Done?

I have a game. Part of its functionality is to download image files that it places into folders. One of the folder created by the game is named "CON". As far as I understand it, CON is a system reserved name and can never be used. I found a workaround someone put on a webpage. But the folder created this way can only be deleted through the Windows Command Line. The folder created by my game can be deleted in Windows Explorer like normal.

So my question is, how is this game able to create a folder named CON? More importantly, how can I do this in a way that I can delete the folder in Windows Explorer like any other folder?

UPDATE (Read First)
I've made a mistake. The folder has a Alt+0160 or Alt+255 character at the end of CON . Sorry guys .


My System SpecsSystem Spec
.
14 Apr 2016   #2
Pyprohly

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
 
 

Hey Mulsiphix,

It is still possible to create a folder with a device name. You may do this via Command Prompt's rd command by specifying a path name for the device folder while prefixing it with "\\.\" to access the Win32 device namespace.

E.g.
Code:
C:\Users\Pyprohly>md \\.\C:\Users\Pyprohly\con
 
C:\Users\Pyprohly>copy nul \\.\C:\Users\Pyprohly\con\newfile.txt
        1 file(s) copied.
 
C:\Users\Pyprohly>dir \\.\C:\Users\Pyprohly\con /b
newfile.txt
 
C:\Users\Pyprohly>rd \\.\C:\Users\Pyprohly\con /s /q
These device folders have strange behaviours and cannot be removed through Windows Explorer.
My System SpecsSystem Spec
14 Apr 2016   #3
Mulsiphix

Windows 7 Home Premium
 
 

That is cool to know. Unfortunately, I needed to create this for a project I plan on sharing with others. So if it isn't a normal behaving folder, it would be too problematic. Thank you. I appreciate the information
My System SpecsSystem Spec
.

15 Apr 2016   #4
cornemuse

Windows 7 Home Premium bit
 
 

Try "alt0160" before CON (hold down 'alt' while typing 0160, then C, O, N), <- invisible charactor, shows " CON" also, 'goes to the top of the list'.

Is this what you want??

-c-
My System SpecsSystem Spec
15 Apr 2016   #5
Mulsiphix

Windows 7 Home Premium
 
 

Quote   Quote: Originally Posted by Mulsiphix View Post
UPDATE (Read First)
I've made a mistake. The folder has a Alt+0160 or Alt+255 character at the end of CON . Sorry guys .
Unfortunately not. I need it to be alphabetized properly in a sea of other folders in the same directory. Thank you though .
My System SpecsSystem Spec
16 Apr 2016   #6
Ztruker

Windows 10 Pro X64
 
 

Why would a game require a folder that is the same as a system device?


Why not ask the maker of the game to fix the problem?
My System SpecsSystem Spec
16 Apr 2016   #7
Mulsiphix

Windows 7 Home Premium
 
 

The game is a card game and it uses three letter abbreviations for different card expansions. CON is a real world code for the expansion and so it was using that. It is open source and programmed in Java. It is possible that the developer doesn't use Windows natively *shrug*. But I have contracted the developers and let them know *fingers crossed*.
My System SpecsSystem Spec
Reply

 Creating A Folder Named "CON"; Can It Be Done?




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
A FOLDER APPEAR named "Tempo" with a subfolder named "Lexicons"
HI TO ALL OF YOU OUT THERE i'm new to this forum, i hope you guys can help me out. A folder named "Tempo" with a subfolder named "Lexicons" created and reappear in my "E" Drive. i deleted it but it kept on reappearing after i revisit that drive. tried deleting it from CMD PROMPT with...
General Discussion
How Do I Force Creating "Restore Previous Session" Points forIE Folder
I close all tabs of IE9 daily and restore them the next day from a blank tab. However, often IE stops working and restarts certain tabs, and when this happens it acts as if no tabs were stored from last session, (the link is dimmed). I found that I can open the Properties of IE folder...
Browsers & Mail
start menu user folder link named "UsersFiles"
Recently setup a new desktop and after installing Windows 7 and setting up I noticed my user folder is named "UsersFiles" in my start menu (as well as on the desktop). The folder path itself is correct and I've tried creating a new user but that user has the same issue. If I can't fix this without...
General Discussion
Have copied files named "Copy of" instead of "- Copy" (aka XP style)
G'day everyone How can I get Windows 7 to name copied files using the scheme "Copy of" (used in Windows XP and earlier) instead of the default scheme "- Copy", whenever a file is copied to the same directory as the original file? In other words, if you copy a file named "Foo.txt" in a...
General Discussion
Keeps creating "My Pictures" folder with no location tab
I have all my pictures in my regular My Pictures folder, however, every time I do anything with photos my machine creates a new My Pictures folder inside the My Documents folder. This newly created folder does not have a location tab under properties so I delete it but next time I look at or file...
Music, Pictures & Video
Denied permission when trying to get access to folder named "1055"
From somewhere, somehow, a folder named "24cd9e4542d29590bce925ec30" has been created in my W7x86pro root dir. Trying to look inside, I had to "permanently get access". But then inside it, there are a whole lot of folders named things like 1025, 1028, 1029, etc, ending with 3076, and 3082. ...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 01:17.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App