Map drive letter to unshared folder?

  • Thread starter Thread starter Nigel M
  • Start date Start date
N

Nigel M

I've used "Map Network Drive" to assign a drive letter to a subfolder of
My Documents. I've now decided that I don't want this folder to be
shared on the network, but I still want to access it via the drive.

Is there a way without using subst, or is this still the best way?
 
You don't need to share it to us subst
You don't need to share it to map it
Mapping it doesn't share it on the network

You can use either of these commands

net use z: \\computername\c$\pathtofolder
or
subst z: c:\pathtofolder

Regards
Mark Dormer
 
You can use either of these commands

net use z: \\computername\c$\pathtofolder
or
subst z: c:\pathtofolder

Thanks, so subst is still OK then? What's the best way to automate this?
 
make a new text document, put the following line into it
subst z: c:\pathtofolder
save and rename it to map.bat

put it in startup if you want it to run everytime you login


you could map it via exploere and tick the box to reconnect at login, that
will make it permanent

Regards
Mark Dormer
 
save and rename it to map.bat

put it in startup if you want it to run everytime you login

Of course, thank you. In the magical world that is XP, I had forgotten
that you could run batch files from StartUp.
 
you could map it via exploere and tick the box to reconnect at login, that
will make it permanent

Sorry, could you explain this?

I've got subst to work, but then I tried to use label to set the name of
the drive, I keep getting access denied.
 
You can't change the label of a network drive or a drive made available
using subst.

Regards
Mark Dormer
 
Back
Top