Map drive letter to unshared folder?

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?
 
M

Mark Dormer

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
 
N

Nigel M

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?
 
M

Mark Dormer

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
 
N

Nigel M

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.
 
N

Nigel M

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.
 
M

Mark Dormer

You can't change the label of a network drive or a drive made available
using subst.

Regards
Mark Dormer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top