> From: Diane Holt [mailto:[EMAIL PROTECTED]]
> ...
> 
> --- Daniel Barclay <[EMAIL PROTECTED]> wrote:
> > > From: Diane Holt [mailto:[EMAIL PROTECTED]]
> ...
> > > "\xyz\dir{1,2}" aren't relative pathnames.
> > 
> > If my current directory is "C:\abc", then doesn't 
> "\xyz\dir1" refer to 
> > "C:\xyz\dir1", and if my current directory is "D:\def", 
> then doesn't 
> > "\xyz\dir1" refer to "D:\xyz\dir1"? 
> 
> Nope. If you're in C:\abc, try to 'cd \xyz\dir1' and see what 
> happens. 

I checked and get what I expected.  A pathname like "\x" is evaluated 
relative to the current default drive.


C:\DBarclay>c:

C:\DBarclay>cd \temp

C:\temp>dir \dbarclay
 Volume in drive C has no label.
 Volume Serial Number is 5C82-06FE

 Directory of C:\dbarclay

05/06/2002  12:54p      <DIR>          .
05/06/2002  12:54p      <DIR>          ..
05/06/2002  12:54p      <DIR>          on_C
               0 File(s)              0 bytes
               3 Dir(s)   6,141,587,456 bytes free

C:\temp>h:

H:\DBarclay>dir \dbarclay
 Volume in drive H has no label.
 Volume Serial Number is 64B8-6915

 Directory of H:\dbarclay

05/06/2002  12:54p      <DIR>          .
05/06/2002  12:54p      <DIR>          ..
05/06/2002  12:54p      <DIR>          on_H
04/30/2002  04:21p      <DIR>          work
04/18/2002  02:11p      <DIR>          work1
               0 File(s)              0 bytes
               5 Dir(s)  70,851,989,504 bytes free

H:\DBarclay>

The "cd" command itself also works as I expected:


H:\DBarclay>cd \

H:\>cd \dbarclay

H:\DBarclay>C:

C:\temp>cd \dbarclay

C:\DBarclay>


The pathname "\dbarclay" doesn't always evaluate to the same directory,
so it isn't an absolute pathname, so it must be a relative pathname,
right?



> (Note that I'm only willing to type those silly
> backslashes when I'm referring you to a Winbloze command to run :)

Sure.  Some parts of Windows take forward slashes anyway.



Daniel

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to