Using the SUBST command
The workstation acting as server has a directory c:\shared which is accessible to the other workstation who will connect to this shared directory using a network drive letter (usually t:).
On the server I create a batch file «c:\sub.bat» which contains only one line:
subst t: c:\shared
Then I add a link to this batch file to the «Autostart» folder in the Windows Start menu so that this file is executed once at each startup.
Note : SUBST does not seem to work when specified in the configuration files for the «DOS subsystem», CONFIG.NT and AUTOEXEC.NT. They are executed every time a DOS subsystem is created, which means every time you start a 16-bit program. But «When you include Win32 binary commands in the AUTOEXEC.NT file in Windows NT, they do not execute. The AUTOEXEC.NT file runs only 16-bit DOS binary commands. ... To work around this problem, use either of the following methods: (1) Create a batch file including the command. Next, create a program item for the batch file in the Startup group of Program Manager. Or (2) include the command in a user's login script.» *
Copyright 2001-2010 Luc Saffre.
http://tim.saffre-rumma.net
Generated 2010-12-19 01:04:14