X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f From: sandmann AT clio DOT rice DOT edu (Charles Sandmann) Message-Id: <10112280447.AA19913@clio.rice.edu> Subject: Re: UNC examples To: tim DOT van DOT holder AT pandora DOT be (Tim Van Holder) Date: Thu, 27 Dec 2001 22:47:08 -0600 (CST) Cc: djgpp-workers AT delorie DOT com In-Reply-To: <000201c18f1f$f5f225d0$1c7d76d5@zastaixp> from "Tim Van Holder" at Dec 27, 2001 10:46:37 PM X-Mailer: ELM [version 2.5 PL2] Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > > > C:\>dir z:\\cws333\d$\djgpp > > > Volume in drive \\cws333\d$ has no label. > > > ... > > > > > > So if there is a UNC after the drive it uses the UNC and ignores the > > > drive. The drive can even be non-mapped. > > > > Does this happen if you call, say, findfirst with > > z:\\cws333\d$\djgpp, or > > only from the CMD's command line? If the latter, it might be a > > ``feature'' of the way the shell parses file names. > > Since 4NT does not exhibit this behaviour, I'm assuming it's a > cmd.exe 'feature' (unless 4NT's lack of support is a 4NT > 'feature' of course :-) ) The file utils cat program built with djgpp does this too. So both cat \\cws333\d$\djgpp\setup.bat and cat z:\\cws333\d$\djgpp\setup.bat work. Even more interesting, cat \:\\cws333\d$\djgpp\setup.bat works. On both Windows 2000 and Windows 95. Some real potential for abuse here :-) This might allow psuedo disks to go to calls that want them but allow the required stuff to still work.