Path: utzoo!attcan!uunet!ncrlnk!ncr-sd!hp-sdd!hplabs!ucbvax!E.ISI.EDU!SAC.96BMW-LGSPP From: SAC.96BMW-LGSPP@E.ISI.EDU Newsgroups: comp.sys.misc Subject: SUBST bug and fix Message-ID: <[E.ISI.EDU]17-Nov-88.15:31:29.SAC.96BMW-LGSPP> Date: 17 Nov 88 21:31:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 21 For anyone having problem with the DOS SUBST: command: I have noticed the command has a problem when executing from within a batch file...and gives the error: Cannot SUBST a network drive (even when no network is active) I have found that if you initailize the command with a VALID drive letter A:-C: first, and then execute your command, it will operate clearly, so that if you HAD: SUBST G: C:\bin\dat You can fix the problem with: SUBST B: C:\ SUBST G: C:\bin\dat SUBST B: /d (To delete the B: substitution) Hope I helped someone out there: +-----------------+-------------------------------------------------+ | _ __ (TFM) | Richard A. Gautier, Airman First Class, USAF | | ' ) ) / | ARPA: SAC.96BMW-LGSPP@e.isi.edu | | /--' o _. /_ | Work: 915-696-4946 Play: 915-695-3406 | | / \_<_(__/ /_ | Programmers never die, they just get debugged! | +-----------------+-------------------------------------------------+