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.