Map drive to drive on same computer?

  • Thread starter Thread starter MrB
  • Start date Start date
M

MrB

A software vendor told me that you should be able to map a drive to the
local computer. I found that it didn't work. His software will only behave
if it finds the program on P:. He resolved the problem with a subst command,
creating a virtual drive. Is there a way to map to a local folder?
 
MrB said:
A software vendor told me that you should be able to map a drive to the
local computer. I found that it didn't work. His software will only behave
if it finds the program on P:. He resolved the problem with a subst command,
creating a virtual drive. Is there a way to map to a local folder?

Both subst and mapping a drive will do the trick:

net use P: "\\%ComputerName%\c$\Some Folder Name"

If you find that this does not work for you then please
post the exact command you use, and the verbatim
error message you get.
 
Thanks for responding. I get an error message.

Map network drive
P:
\\ck3168202-a\c:\java

Error message:

The network path \\ck3168202-a\c:\java could not be found.

At work, I am trying this on Win 2K pro, for this exercise, I am using XP
pro.
 
From: "MrB" <[email protected]>

| A software vendor told me that you should be able to map a drive to the
| local computer. I found that it didn't work. His software will only behave
| if it finds the program on P:. He resolved the problem with a subst command,
| creating a virtual drive. Is there a way to map to a local folder?
|

The SUBST.EXE is the correct command to create a drive letter for a sub-directory
(sub-folder).

For example I want to create a "P:" for; C:\Documents and Settings\lipman\My Documents

I would use the command;
subst P: "C:\Documents and Settings\lipman\My Documents"

Entering "P:" will show the files in "C:\Documents and Settings\lipman\My Documents"

To always load "P:" you can create a Login Script via the Group Policy Editor (gpedit.msc)
or you can place it in the "Run" Registry entry.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

If you load File and Print Shares and you use Net Use to map a "P:" drive to the share, make
sure all accounts are locked down for security becuase your PC will be at greater risk by
having to use File and Print Shares. In addition, the SUBST command drive "P:" will be
faster than a File Share mapped drive due to the fact that networking is now involved.
 
From: "MrB" <[email protected]>

| Thanks for responding. I get an error message.
|
| Map network drive
| P:
| \\ck3168202-a\c:\java
|
| Error message:
|
| The network path \\ck3168202-a\c:\java could not be found.
|
| At work, I am trying this on Win 2K pro, for this exercise, I am using XP
| pro.

Incorrect syntax !

net use p: \\ck3168202-a\c$\java

However, the SUBST command is better, see my other reply !

subst p: c:\java
 
I did notice, but I thought that meant root directory and therefore used
C:\. I will try again. Thank you for reviewing my commands.
 
David, thank you. That is what we ended up with, so that is good. I was just
curious about the map option, which I think Pegasus has cleared up. Thank
you both.

MrB
 
Back
Top