Mail Archives: djgpp/1999/08/23/20:00:04
Johan Venter wrote:
> Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote in message
> news:Pine DOT SUN DOT 3 DOT 91 DOT 990822104528 DOT 6405G-100000 AT is...
> >
> > On Fri, 20 Aug 1999, Andris Pavenis wrote:
> >
> > > 2) try to open C:\/foo (I know the name is bad, but Windows
> > > likes to say it cannot create file only after about 5
> seconds)
> > Probably because C:\/foo is first converted into C:\\foo, and that looks
> > to Windows like a UNC, so it goes out to search the network...
> Brilliant! Yes, that must be the problem. Can anyone test it?
Yes, I can and did. And it showed me a bug in DOS 7.
Weird behavior that works (it displays the contents of the share):
dir "C:\\machine\share"
Weird behavior that doesn't work:
cd "C:\\machine\share"
That produces a prompt like:
C:\machine\share>
And then typing 'dir' gives the message invalid directory. DOS gets confused
when you try to change directory into a share prefixed with a drive letter,
it thinks it is a proper directory because of the UNC match of the filename,
but when it changes the current directory, it doesn't use the UNC's
correctly. That produces a strange situation, where you are in a directory
that has never existed.
--
-Rolf Campbell (39)3-6318
- Raw text -