Mail Archives: djgpp/2002/06/06/06:55:07
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 -