Re: command line completion bug when filename starts with "["

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Also...

Reserved Names (reserved device names)

[[Do not use the following reserved device names for the name of a file:
CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9,
LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9. Also avoid these
names followed by an extension, for example, NUL.tx7.

Windows NT: CLOCK$ is also a reserved device name. ]]
from...
Naming a File
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/naming_a_file.asp


--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In news:DE6E3BD2-FB1A-4E99-9DEE-E70C21F79479@xxxxxxxxxxxxx,
Calin Iaru <CalinIaru@xxxxxxxxxxxxxxxxxxxxxxxxx> hunted and pecked:
Thanks, it's interesting. What about "con", why can't I create a directory
called "con" as in
md con
?

Best regards,
Calin


"Wesley Vogel" wrote:

File and directory name completion correctly processes file names that
contain white space or special characters if you place quotation marks
around the matching path.

The following special characters require quotation marks: & < > [ ] { }
^ = ; ! ' + , ` ~ [white space]

Paste the following line into the Start | Run box and click OK...

hh ntcmds.chm::/Cmd.htm

or see..

Cmd

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/cmd.mspx

just above the formatting legend.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In news:1DF40A12-E377-4A8F-ADE4-99A3630D82AE@xxxxxxxxxxxxx,
Calin Iaru <CalinIaru@xxxxxxxxxxxxxxxxxxxxxxxxx> hunted and pecked:
Hi all,

- create a file named [a].txt
- open command prompt
- goto the directory where [a].txt resides
- type "[" character and use autocompletion to have expanded the
rest of the name
Instead of completing to [a].txt, it will expand to ["[a].txt"

Best regards,
Calin

.



Relevant Pages

  • Re: odd problem
    ... sys is *not* a reserved name. ... [[Do not use the following reserved device names for the name of a file: ... MS-MVP Windows Shell/User ... when I try to make a folder or a program tries to make a folder called ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: naming file/folder as "con"
    ... the keyboard and the display. ... [[Do not use the following reserved device names for the name of a file: ... MS-MVP Windows Shell/User ...
    (microsoft.public.windowsxp.basics)
  • Re: command line completion bug when filename starts with "["
    ... For example - open a cmd window and type "copy con ... that is how we built files such as "config.sys" and ... Best regards, ... MS-MVP Windows Shell/User ...
    (microsoft.public.windowsxp.general)
  • Re: command line completion bug when filename starts with "["
    ... called "con" as in md con ... Best regards, ... MS-MVP Windows Shell/User ... Calin Iaru hunted and pecked: ...
    (microsoft.public.windowsxp.general)
  • Re: Cannot create a folder with name "con"
    ... [[Do not use the following reserved device names for the name of a file: ... Aditya Sinha hunted and pecked: ... Can anyone please help me in creating a folder named "con" on my system. ...
    (microsoft.public.windowsxp.security_admin)