delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/04/11/01:59:17

From: sos AT buggy DOT prospect DOT com DOT ru (Sergey Okhapkin)
Subject: FW: Special Filenames AUX, CON, etc.
11 Apr 1998 01:59:17 -0700 :
Message-ID: <01BD6548.A29CAEF0.cygnus.cygwin32.developers@sos>
Cc: "'cygwin32-developers AT cygnus DOT com'" <cygwin32-developers AT cygnus DOT com>

Any ideas? It seems reasonable to me...

----------
From: 	Spencer Low
Sent: 	суббота, 11 апреля 1998 г. 6:30
To: 	sos AT prospect DOT com DOT ru
Subject: 	Special Filenames AUX, CON, etc.

I saw some messages on the gnu-win32 mailing list about how Windows NT
doesn't have the capability to create/open files with special names (or
containing special names) like AUX. I was really surprised to see that
gnu-win32 doesn't properly open files with these funny names when the fix is
quite easy.

To create/open a file with a special name, reference it like:

\\?\C:\MyDirectory\aux

instead of

C:\MyDirectory\aux

I tried this with the gnu-win32 tools and I was able to manipulate files
with special names with no problems.

[The original purpose of the \\?\{FullPath} syntax seems to be a mechanism
to get NT to recognize a full path longer than 255 characters]

I'm not subscribed to the mailing list and I don't have time to submit a
patch, but I thought you may be able to use this info to patch gnu-win32 if
you have the time and energy.

Thanks,

Spencer [please feel free to forward this along]
--
Spencer Low <spencer AT lowtek DOT com>



- Raw text -


  webmaster     delorie software   privacy  
  Copyright ╘ 2019   by DJ Delorie     Updated Jul 2019