Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#177547 - 01/09/2003 09:05 Making a drive letter out of thin air?
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
Back in the old days, there used to be a DOS command that would let you create a drive letter out of thin air. For instance, setting c:\somefolder\subfolder to the letter F:, then all the contents of "subfolder" would appear to be just like drive F:.

But I don't remember the command and I seem to recall it got deprecated sometime around win98 anyway.

Anybody know how to get this done in the newer OS's?
_________________________
Tony Fabris

Top
#177548 - 01/09/2003 09:12 Re: Making a drive letter out of thin air? [Re: tfabris]
g_attrill
old hand

Registered: 14/04/2002
Posts: 1172
Loc: Hants, UK
I think you need "subst", thought I've never used it myself!

Gareth

Top
#177549 - 01/09/2003 09:13 Re: Making a drive letter out of thin air? [Re: tfabris]
Mach
old hand

Registered: 15/07/2002
Posts: 828
Loc: Texas, USA
SUBST [drive1: [drive2:]path]
SUBST drive1: /D

drive1: Specifies a virtual drive to which you want to assign a path.
[drive2:]path Specifies a physical drive and path you want to assign to
a virtual drive.
/D Deletes a substituted (virtual) drive.

Type SUBST with no parameters to display a list of current virtual drives.

Edit:Cursed, outdrawn again...


Edited by Mach (01/09/2003 09:16)

Top
#177550 - 01/09/2003 09:28 Re: Making a drive letter out of thin air? [Re: tfabris]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
It's 'subst'. It still exists. In fact, I've got a Windows service you might want that does this at bootup -- I use it to keep all of my dev tools on P: and my source on S:

_________________________
-- roger

Top
#177551 - 01/09/2003 12:13 Re: Making a drive letter out of thin air? [Re: Roger]
lectric
pooh-bah

Registered: 20/01/2002
Posts: 2085
Loc: New Orleans, LA
I use it all the time to test cd-rom autoplay before I burn the CD. You just dump everthing into a folder, subst the folder to a drive letter, right click on the drive in explorer, and hit autoplay. Works like a champ.

Top
#177552 - 01/09/2003 12:43 Re: Making a drive letter out of thin air? [Re: g_attrill]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
Thanks everyone. Subst was in fact the command I'm talking about. I could have sworn it was removed from later versions of windows. Dunno why I thought that.

Cool, I'll give it a shot. Thanks again!
_________________________
Tony Fabris

Top