Mail Archives: djgpp/1998/05/06/15:02:28
Eli Zaretskii wrote:
> My hesitation stems primarily from the fact that DOS is probably handling
> these two files as residing on two different drives. For example, a
> command such as "ren i:foo j:bar" (and the corresponding DOS system call)
> will probably fail, since DOS doesn't allow renaming across file systems.
I actually didn't try "REN", but a "MOVE" is refused by DOS, so DOS
itself
does recognize UNCs.
>
> However, if people think that this case is important enough to handle, I
> will do that.
I do think it is important in the long run, but I also believe that
this requires a major rewrite of lots of file name handling code.
I don't see any way to support drive letters _and_ UNCs in a foolproof
way. One way would be to map something like "C:/AUTOEXEC.BAT" into
"\\localhost\c:\autoexec.bat", and drop drive letters for remote hosts
completely, i.e. "i:\demmer\plan" becomes
"\\brain1/usr/home/demmer/plan".
Hence, if a UNC starts with "\\localhost" it is a local filesystem,
and DOS interrupts apply, otherwise it is on a remote FS.
But this requires tons of code to get rewritten.
--
Ciao
Tom
*************************************************************
* Thomas Demmer *
* Lehrstuhl fuer Stroemungsmechanik *
* Ruhr-Uni-Bochum *
* Universitaetsstr. 150 *
* D-44780 Bochum *
* Tel: +49 234 700 6434 *
* Fax: +49 234 709 4162 *
* http://www.lstm.ruhr-uni-bochum.de/~demmer *
*************************************************************
- Raw text -