[comp.os.msdos.misc] Converse of "subst" ?

ti@altos86.Altos.COM (Ti Kan) (10/02/90)

I have a large hard disk (190MB) which is now partitioned into
logical drives c: through h: with MS-DOS 3.30.  I would like
to be able to access the drives d: through h: while on c:
via directory paths.  For example, "cd c:\d" brings me to d:\,
and "type c:\d\file" will actually display d:\file.
This is exactly the converse of what the DOS "subst" command
allows.  Is there any commercial/public domain software that
allows me to do this?  If not, any suggestions on how I can
write a program to do this?

Any ideas would be greatly appreciated.

-Ti
-- 
Ti Kan | vorsprung durch technik!                                       \\\
Internet: ti@altos.com                                                   \\\
UUCP: ...!{sun|sco|pyramid|amdahl|uunet}!altos!ti                     /// \\\
The opinions herein are not necessarily those of Altos.              ////////\

funkstr@ucscb.UCSC.EDU (Larry Hastings) (10/02/90)

+-In article <4132@altos86.Altos.COM>,
| ti@altos86.Altos.COM (Ti Kan) wrote:
|
| I have a large hard disk (190MB) which is now partitioned into
| logical drives c: through h: with MS-DOS 3.30.  I would like
| to be able to access the drives d: through h: while on c:
| via directory paths.  For example, "cd c:\d" brings me to d:\,
| and "type c:\d\file" will actually display d:\file.
|
+----------

This is exactly what the DOS command "join" does.  Read your manual.
--
larry hastings, the galactic funkster, funkstr@ucscb.ucsc.edu
I don't speak for Knowledge Dynamics or UC Santa Cruz, nor do they speak for me

mhoffman@encore.com (Mike Hoffman) (10/02/90)

From article <4132@altos86.Altos.COM>, by ti@altos86.Altos.COM (Ti Kan):
> to be able to access the drives d: through h: while on c:
> via directory paths.  For example, "cd c:\d" brings me to d:\,
> and "type c:\d\file" will actually display d:\file.
> This is exactly the converse of what the DOS "subst" command
> allows.

Try the DOS "join" command. It is similar to the Unix "mount" command
and will do exactly what you ask.

Michael J. Hoffman           		...uunet!gould!mhoffman
Manufacturing Engineering   		mhoffman@encore.com
Encore Computer Corporation

otto@tukki.jyu.fi (Otto J. Makela) (10/02/90)

In article <4132@altos86.Altos.COM> ti@altos86.Altos.COM (Ti Kan) writes:
   I have a large hard disk (190MB) which is now partitioned into
   logical drives c: through h: with MS-DOS 3.30.  I would like
   to be able to access the drives d: through h: while on c:
   via directory paths.  For example, "cd c:\d" brings me to d:\,
   and "type c:\d\file" will actually display d:\file.
   This is exactly the converse of what the DOS "subst" command
   allows.  Is there any commercial/public domain software that
   allows me to do this?  If not, any suggestions on how I can
   write a program to do this?

I'm not sure about DOS 3.30, but my DOS 4.01 system has JOIN which
does exactly this.
If you go for DOS 4.01, you won't need half a dozen drives...

   /* * * Otto J. Makela <otto@jyu.fi> * * * * * * * * * * * * * * * * * * */
  /* Phone: +358 41 613 847, BBS: +358 41 211 562 (CCITT, Bell 24/12/300) */
 /* Mail: Kauppakatu 1 B 18, SF-40100 Jyvaskyla, Finland, EUROPE         */
/* * * Computers Rule 01001111 01001011 * * * * * * * * * * * * * * * * */
--
   /* * * Otto J. Makela <otto@jyu.fi> * * * * * * * * * * * * * * * * * * */
  /* Phone: +358 41 613 847, BBS: +358 41 211 562 (CCITT, Bell 24/12/300) */
 /* Mail: Kauppakatu 1 B 18, SF-40100 Jyvaskyla, Finland, EUROPE         */
/* * * Computers Rule 01001111 01001011 * * * * * * * * * * * * * * * * */

stever@Octopus.COM (Steve Resnick ) (10/03/90)

In article <4132@altos86.Altos.COM> ti@altos86.Altos.COM (Ti Kan) writes:
>I have a large hard disk (190MB) which is now partitioned into
>logical drives c: through h: with MS-DOS 3.30.  I would like
>to be able to access the drives d: through h: while on c:
>via directory paths.  For example, "cd c:\d" brings me to d:\,
>and "type c:\d\file" will actually display d:\file.
>This is exactly the converse of what the DOS "subst" command
>allows.  Is there any commercial/public domain software that
>allows me to do this?  If not, any suggestions on how I can
>write a program to do this?
>

Try this: JOIN D: C:\D

That will make drive D a subdirectory called D on drive C.

Cheers!
Steve


-- 
----------------------------------------------------------------------------
steve.resnick@f105.n143.z1.FIDONET.ORG - or - apple!camphq!105!steve.resnick
Flames, grammar errors, spelling errrors >/dev/nul
----------------------------------------------------------------------------

pinard@IRO.UMontreal.CA (Francois Pinard) (10/03/90)

In article <4132@altos86.Altos.COM> ti@altos86.Altos.COM (Ti Kan) writes:

   I would like to be able to access the drives d: through h: while on
   c: via directory paths.

The `join' utility does exactly what you want.  It is part of DOS, but
probably not on version 2. or lower.  Look at your manuals.  :-)
--
Franc,ois Pinard          ``Vivement GNU!''         pinard@iro.umontreal.ca
(514) 588-4656    cp 886 L'Epiphanie (Qc) J0K 1J0    ...!uunet!iros1!pinard