Date: Thu, 6 Jun 2002 13:17:19 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Peter Cassidy cc: djgpp AT delorie DOT com Subject: Re: DOS 8 levels deep workaround? In-Reply-To: <3cff0963$1@duster.adelaide.on.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.