Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!seismo!rochester!ritcv!mds7958 From: mds7958@ritcv.UUCP Newsgroups: comp.misc,comp.sys.ibm.pc Subject: HELP with subst in an autoexec.bat Message-ID: <231@ritcv.UUCP> Date: Mon, 6-Apr-87 17:47:25 EST Article-I.D.: ritcv.231 Posted: Mon Apr 6 17:47:25 1987 Date-Received: Wed, 8-Apr-87 23:38:06 EST Reply-To: mds7958@ritcv.UUCP (Mark Sicignano) Organization: Rochester Institute of Technology, Rochester, NY Lines: 33 Xref: utgpu comp.misc:425 comp.sys.ibm.pc:2756 I am having a problem with using subst in a batch file. I want to make a directory (c:\disk.e) accessible simply by using a drive name (e:). The problem is that when I start up my system, and the commands in the autoexec.bat file are executed, I get the following error. the autoexec.bat file +----------------------------------------------------------------------------- | echo off | prompt $e[31;1m$d $e[32m$t$h$h$h$_$e[33m$p $g $e[0m | path c:\dos;c:\batches | dir c:\dos\lastused > c:\dos\lastlog | type c:\dos\lastused > c:\dos\lastused | c:\dos\subst e: c:\disk.e the error message +----------------------------------------------------------------------------- | C> | C> echo off | Cannot SUBST a network drive When I re-execute the autoexec.bat file manually, it makes the substitution without difficulty. Does anybody know why this happens and how to make it work correctly? I am using a Leading Edge Model D with 512K, one floppy (a:), a 30 megabyte hard disk (c:), and MS-DOS 3.1. Any suggestions would be much appreciated. Thanks, Mark Sicignano {allegra,seismo}!rochester!ritcv!mds7958