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

Mulsiphix

New member
Member
VIP
Local time
11:58 AM
Messages
134
Location
Wylie, TX
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 :o.
 
Last edited:

My Computer

OS
Windows 7 Home Premium
CPU
Core 2 Duo E4300 @ 3.15GHz
Motherboard
MSI P6N 650i SLI Platinum
Memory
3GB GeIL DDR2-800Mhz
Graphics Card(s)
Nvidia GeForce 260
Sound Card
Creative X-Fi XtremeGamer / Logitech X-540
Monitor(s) Displays
Samsung 226BW
Hard Drives
500GB Samsung
320GB Seagate
1TB Hitachi
80GB Hitachi
PSU
Thermaltake Toughpower 750W
Case
Antec 900 Advanced Gaming Case
Cooling
Tuniq Tower 120
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:
[COLOR=silver]C:\Users\Pyprohly>[/COLOR]md \\.\C:\Users\Pyprohly\con
 
[COLOR=silver]C:\Users\Pyprohly>[/COLOR]copy nul \\.\C:\Users\Pyprohly\con\newfile.txt
        1 file(s) copied.
 
[COLOR=silver]C:\Users\Pyprohly>[/COLOR]dir \\.\C:\Users\Pyprohly\con /b
newfile.txt
 
[COLOR=silver]C:\Users\Pyprohly>[/COLOR]rd \\.\C:\Users\Pyprohly\con /s /q

These device folders have strange behaviours and cannot be removed through Windows Explorer.
 

My Computer

Computer type
PC/Desktop
OS
Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
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 :D
 

My Computer

OS
Windows 7 Home Premium
CPU
Core 2 Duo E4300 @ 3.15GHz
Motherboard
MSI P6N 650i SLI Platinum
Memory
3GB GeIL DDR2-800Mhz
Graphics Card(s)
Nvidia GeForce 260
Sound Card
Creative X-Fi XtremeGamer / Logitech X-540
Monitor(s) Displays
Samsung 226BW
Hard Drives
500GB Samsung
320GB Seagate
1TB Hitachi
80GB Hitachi
PSU
Thermaltake Toughpower 750W
Case
Antec 900 Advanced Gaming Case
Cooling
Tuniq Tower 120
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 Computer

Computer type
Laptop
Computer Manufacturer/Model Number
toshiba 505
OS
Windows 7 Home Premium bit
CPU
amd?
Motherboard
?
Memory
4 gig
Monitor(s) Displays
Samsung S27D360 &S24D300 - Acer K222HQL - Eizo 21" (4x3)
Screen Resolution
1280 x 720 -1600x900 - (eizo 1024x768
Hard Drives
240 ssd
PSU
amd (?)
Mouse
logitech tackball
Antivirus
360 total security
Browser
firefox portable 29.0.1
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 :o.

Unfortunately not. I need it to be alphabetized properly in a sea of other folders in the same directory. Thank you though :cry:.
 

My Computer

OS
Windows 7 Home Premium
CPU
Core 2 Duo E4300 @ 3.15GHz
Motherboard
MSI P6N 650i SLI Platinum
Memory
3GB GeIL DDR2-800Mhz
Graphics Card(s)
Nvidia GeForce 260
Sound Card
Creative X-Fi XtremeGamer / Logitech X-540
Monitor(s) Displays
Samsung 226BW
Hard Drives
500GB Samsung
320GB Seagate
1TB Hitachi
80GB Hitachi
PSU
Thermaltake Toughpower 750W
Case
Antec 900 Advanced Gaming Case
Cooling
Tuniq Tower 120
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
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 Computer

OS
Windows 7 Home Premium
CPU
Core 2 Duo E4300 @ 3.15GHz
Motherboard
MSI P6N 650i SLI Platinum
Memory
3GB GeIL DDR2-800Mhz
Graphics Card(s)
Nvidia GeForce 260
Sound Card
Creative X-Fi XtremeGamer / Logitech X-540
Monitor(s) Displays
Samsung 226BW
Hard Drives
500GB Samsung
320GB Seagate
1TB Hitachi
80GB Hitachi
PSU
Thermaltake Toughpower 750W
Case
Antec 900 Advanced Gaming Case
Cooling
Tuniq Tower 120
Back
Top