Article View: comp.os.msdos.misc
Article #3006Re: LASTDRIVE fiddling - CAN'T CHANGE IT AFTER STARTUP
From: glad
Date: Tue, 15 Dec 1992 04:41
Date: Tue, 15 Dec 1992 04:41
41 lines
3038 bytes
3038 bytes
> Anyone able to tell me how to mess with the messydos lastdrive parameter
> which can be set in config.sys ? I want to overcome a very boring
> "feature" of silverplatter "multiplatter" which absolutely insists that
> the lastdrive be set to J - this makes network login a pain and the
> cdserver is on the network. I can survive with a boot disk for access but
> it seems like a very clumsy way to use a very expensive piece of
> hardware/software. I'd like to write myself a utility to kludge the
> lastdrive temporarily while I access multiplatter, then undo the damage
> after I've finished.
>
For each drive letter that is defined in your system, DOS sets aside an 88
byte block of memory to store info about the associated logical drive. The
block is called the CDS, current directory structure, which tells DOS what
the current directory for the drive is, where DOS can find info about the
drive's physical characteristics, and whether the drive is a network drive.
So, with that in mind, you can see the difficulty in trying to change the
lastdrive environment variable; since DOS allocates the memory needed to
store environment information about drives when it reads config.sys file
on boot-up. So, to my knowledge, you can't change the lastdrive after
the system starts. Let me know if you find a way around this, though.
Francis
--
*******************************************************************************
BISEXUAL, GAY & LESBIAN ASSOCIATION OF DALHOUSIE
*******************************************************************************
* __ __ __ __ __ __ __ __ __ __ __ __ __ *
* | | *
* e-mail: GLAD@AC.DAL.CA | BGLAD | *
* | Dalhousie Student Union Building | *
* Phone: (902) 492-1060 | 6136 University Avenue | *
* 429-2562 | Halifax, Nova Scotia (CAN) | *
* | B3H 4J2 | *
* |__ __ __ __ __ __ __ __ __ __ __ __ __| *
* *
*******************************************************************************
BISEXUAL, GAY & LESBIAN ASSOCIATION OF DALHOUSIE
*******************************************************************************
Technical Details
Message-ID:
<1992Dec15.004138.9571@ac.dal.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!news.cs.indiana.edu!nstn.ns.ca!ac.dal.ca!gladReferences:
<rml.724373893@extro.ucc.su.OZ.AU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!news.cs.indiana.edu!nstn.ns.ca!ac.dal.ca!glad From: glad@ac.dal.ca Newsgroups: comp.os.msdos.misc,comp.os.msdos.programmer Subject: Re: LASTDRIVE fiddling - CAN'T CHANGE IT AFTER STARTUP Message-ID: <1992Dec15.004138.9571@ac.dal.ca> Date: 15 Dec 92 00:41:38 -0400 References: <rml.724373893@extro.ucc.su.OZ.AU> Organization: Dalhousie University, Halifax, Nova Scotia, Canada Lines: 42