Mapping, sort of

  • Thread starter Thread starter Doug Kanter
  • Start date Start date
D

Doug Kanter

I have a legacy dos app which runs in two offices, under different
conditions.

1) In one location, it runs on several networked machines. It gets data from
a directory on the NT server which the Win98SE clients see as "P:". So, the
app is written to look there for its data.

2) In another location, it runs on a single freestanding machine (WIN98SE),
and there's a line in autoexec.bat that uses the subst command to make a
folder on the machine appear as P:.

Now, I have to run this app on a freestanding machine that's loaded with
Win2000. Before I begin wrestling with it, is there something like a subst
command in Win2K, or is there another way of dealing with the issue?
 
Start a Command Prompt, then enter this command:

subst /?

to get all the help you need on the subst command.
 
I'm familiar with the subst command, but since I don't have access to the
machine in question yet, I needed to know if it exists in WIN2K.

Besides the subst command, is there another way of "faking" a drive? I need
to make an existing directory on C disk appear to be a drive letter.
 
It does exist under Win2000. You can also use "net use" to map
some folder to a drive letter.
 
Interesting - a relic (in my brain, at least) from Lantastic! Now...I'm not
trying to avoid studying, but again, the machine's not here yet, so is NET
USE placed in autoexec.bat, or something similar, so it's there whenever the
machine starts?
 
You may need to familiarise yourself with Win2000 before
you begin wrestling (your words) with your test machine.
There is no autoexec.bat under Win2000, but there are
various startup folders, and there is a Task Scheduler that
can be used for this sort of thing.
 
You should be able to use the subst cmd in NT/W2K as well.

--

Brian Oakes

This posting is provided "AS IS" with no warranties and confers no rights.
Please reply to the newsgroup so that others may benefit.
 
Hi
i did the following:
create a cmd file ( eq to bat files)
enter either the subst or net use command in the cmd file
place it in the startup folder and you're all set to go
brgds
 
Brian Oakes said:
You should be able to use the subst cmd in NT/W2K as well.

I won't have the machine until tomorrow morning, so I hope you don't mind if
I pick your brain a bit. Does 2K use an autoexec.bat, or is there another
startup file in which to place the subst command?
 
Yes, there is an autoexec.nt file that can be used. You can also create a
..bat or .cmd file that maps the connection and then place that in the start
up group :)

--

Brian Oakes

This posting is provided "AS IS" with no warranties and confers no rights.
Please reply to the newsgroup so that others may benefit.
 
Thanks for the pointers. You've provided just enough clues to help me get
myself in trouble (which is the best way to learn, IMHO). :-)
 
You might also consider a batch file with the subst command that is
referenced in the registry under:

HKLM\software\microsoft\windows\current version\run

Like the startup folder it will run from here too.
 
Back
Top