delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/06/06/06:55:07

Date: Thu, 6 Jun 2002 13:17:19 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Peter Cassidy <peter DOT cassidy DOT ps AT rocksoft DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: DOS 8 levels deep workaround?
In-Reply-To: <3cff0963$1@duster.adelaide.on.net>
Message-ID: <Pine.SUN.3.91.1020606131425.18128B@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Thu, 6 Jun 2002, Peter Cassidy wrote:

> How can I do this inside an application? i.e. what is the 'system call' that
> implements SUBST?

There's no system call, AFAIK, on plain DOS (the SUBST command accesses 
DOS internal data structures directly).  But you can simply invoke 
"command.com /c subst ..." via the `system' library function.  The 
effect of SUBST is global for the entire system, so doing that from a 
subshell should work.

On Windows 9X, there's the function 71AAh of interrupt 21h to do create a 
SUBST.  But the 8-level limitation doesn't exist on Windows, so it's 
probably not useful for you to know this.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019