HTFC Forums

H.T.F.C.

How To Fix Computers





Go Back   HTFC Forums > Software Newsgroups > Windows XP > Windows XP Basics

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1  
Old 10-12-2007, 07:50 AM
Srinivas.devineni
 
Posts: n/a
Default Naming convention to create folders

when i tried to create a folder or a file with the name CON, windows is not
allowing me to create it. i am using WINDOWS XP Professional SP2.
Reply With Quote
Sponsored Links
Fix your Windows Problems - FAST.
FREE Safe Scan Registry Check. Locate & Fix Errors in Minutes!
  #2  
Old 10-12-2007, 08:13 AM
Alan Edwards
 
Posts: n/a
Default Re: Naming convention to create folders

That is normal.

You cannot use it because CON is a reserved name.
It is not available for use even with an extension, e.g. CON.pdf is
illegal

Here is some old (ancient?) information I have on reserved names:

Reserved filenames
CON PRN, NUL, CLOCK$, COM1, COM2, COM3, COM4, LPT1, LPT2, LPT3, AUX
(not even available with an extension, e.g. CON.com is illegal)

If a directory or filename is named any of these, it may be difficult
to remove.
Renaming, deleting or using RD does not work.
This is an answer for NT (not yet tried in Win95)

Answer: RD \\.\<drive letter>:\<path>\<file name>
i.e. RD \\.\C:\test\com1


(for a file, replace RD with DEL)


The syntax bypasses normal reserve-word checks altogether.


---more information from another
Add to that list the CD device name used in any CD device driver
command
line in CONFIG.SYS (or any other device that takes a name on the
command
line, I guess). Also, at least in my system, CONFIG$, IFS$HLP$,
XMSXXXX0 and SETVERXX.

....Alan
--
Alan Edwards, MS MVP Windows - Internet Explorer
http://dts-l.org/index.htm





On Thu, 11 Oct 2007 23:50:01 -0700, in
microsoft.public.windowsxp.basics, Srinivas.devineni
<Srinivas.devineni@discussions.microsoft.com> wrote:

>when i tried to create a folder or a file with the name CON, windows is not
>allowing me to create it. i am using WINDOWS XP Professional SP2.

Reply With Quote
  #3  
Old 10-12-2007, 08:01 PM
Stan Brown
 
Posts: n/a
Default Re: Naming convention to create folders

Thu, 11 Oct 2007 23:50:01 -0700 from Srinivas.devineni
<Srinivas.devineni@discussions.microsoft.com>:
> when i tried to create a folder or a file with the name CON, windows is not
> allowing me to create it. i am using WINDOWS XP Professional SP2.


I'll bet you also can't create one called PRN or AUX or LPT1 either.

Like CON, those are old DOS device names, and it was illegal for a
file to have those names. (There were a couple more, but I can't
remember them off hand.)

Somebody remind us now how "there is no DOS in Windows XP"?

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
"If there's one thing I know, it's men. I ought to: it's
been my life work." -- Marie Dressler, in /Dinner at Eight/
Reply With Quote
  #4  
Old 10-12-2007, 09:31 PM
JS
 
Posts: n/a
Default Re: Naming convention to create folders

Actually we where able to create files on a Windows server using these
reserved names. It happened when moving some UNIX files (a few of which used
some of these taboo names) over to the server, once they were created on the
server, boy did we have fun!

And no I'm not going to bite and say there is no DOS anymore, wish there WOS
:-)

JS

"Stan Brown" <the_stan_brown@fastmail.fm> wrote in message
news:MPG.21798ead7516b12598b0fa@news.individual.ne t...
> Thu, 11 Oct 2007 23:50:01 -0700 from Srinivas.devineni
> <Srinivas.devineni@discussions.microsoft.com>:
>> when i tried to create a folder or a file with the name CON, windows is
>> not
>> allowing me to create it. i am using WINDOWS XP Professional SP2.

>
> I'll bet you also can't create one called PRN or AUX or LPT1 either.
>
> Like CON, those are old DOS device names, and it was illegal for a
> file to have those names. (There were a couple more, but I can't
> remember them off hand.)
>
> Somebody remind us now how "there is no DOS in Windows XP"?
>
> --
> Stan Brown, Oak Road Systems, Tompkins County, New York, USA
> http://OakRoadSystems.com/
> "If there's one thing I know, it's men. I ought to: it's
> been my life work." -- Marie Dressler, in /Dinner at Eight/



Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to create thumbnails for images in hundreds of folders sanders_wv@yahoo.com Digital Photo 11 09-26-2007 03:24 PM
Restore ability to create compressed folders jeffareid Windows XP 1 09-21-2007 10:36 PM
File naming convention for documents saved in previous versions MaryLou Wilson Microsoft Office 2 09-21-2007 01:54 PM
How do I create folders to store and access email? pr ford Microsoft Office 1 07-25-2007 04:17 PM
Windows Vista Backup Naming Convention WaltN Windows Vista 1 05-16-2007 08:51 PM


All times are GMT. The time now is 06:43 AM.


Powered by vBulletin® Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004 - 2007 Web-S-Sense Pty. Ltd. Usenet and forums posts © their respective authors.
Ad Management by RedTyger