share mapping lost...?

K

Kenneth

Howdy,

My laptop runs XP, other systems on our lan are 2000 Pro.

On the XP machine, I need to have a particular remote share
mapped, though I don't need it frequently.

I soon discovered that when I needed the mapped share, it
had "vanished."

And so, this question:

Are share mappings bound to a particular nic?

I ask because when I use the laptop at home, I disable its
cabled nic, and enable its wireless nic. When I us it at my
office, I reverse that.

Is it the disabling of one of the nics that causes the
mapping to disappear? And, if so, is there a workaround?

Sincere thanks,
 
P

Pegasus \(MVP\)

Kenneth said:
Howdy,

My laptop runs XP, other systems on our lan are 2000 Pro.

On the XP machine, I need to have a particular remote share
mapped, though I don't need it frequently.

I soon discovered that when I needed the mapped share, it
had "vanished."

And so, this question:

Are share mappings bound to a particular nic?

I ask because when I use the laptop at home, I disable its
cabled nic, and enable its wireless nic. When I us it at my
office, I reverse that.

Is it the disabling of one of the nics that causes the
mapping to disappear? And, if so, is there a workaround?

Sincere thanks,

No, shares are not NIC-dependent. If you really want to be
in control about your mapped drives then you should place
this batch file into your startup folder:

@echo off
net use /persistent:no
net use K: \\SomeServer\SomeShare
net use F: \\SomeServer\Finance
 
K

Kenneth

No, shares are not NIC-dependent. If you really want to be
in control about your mapped drives then you should place
this batch file into your startup folder:

@echo off
net use /persistent:no
net use K: \\SomeServer\SomeShare
net use F: \\SomeServer\Finance

Hmmm... I am happy to give it a try, but do have some
questions:

First, if not my nic-bound guess, why might I be losing the
mapping so frequently?

Next, I need some further help on how to actually put the
batch file to work. Can you assist?

Very sincere thanks,
 
K

Kenneth

Hello again,

I experimented a bit, and got the BAT file working as you
suggested.

When I re-boot, a black screen opens, runs the BAT file,
tells me that it ran successfully, but...

When I then look for the mapping in My Computer, it does not
appear.

Also, if I then attempt to do the mapping manually (as I
have done so many times in the past) the first drive letter
it displays is "Z:" which is the mapping I had used in the
BAT file.

My new MAPPING.BAT file looks like this:

@echo off
net use /persistent:no
net use Z:\\Server\\server data\\Paradox

Can you help me to understand why that mapping is not
"sticking?"

Sincere thanks,
 
K

Kenneth

@echo off
net use /persistent:no
net use Z:\\Server\\server data\\Paradox

Ooops...

I just changed that to:

@echo off
net use /persistent:no
net use Z:\\Server\server data\Paradox

but the result is the same, that is, it still shows as
completing successfully, but does not actually do the
mapping.

Thanks again,
 
K

Kenneth

No, shares are not NIC-dependent. If you really want to be
in control about your mapped drives then you should place
this batch file into your startup folder:

@echo off
net use /persistent:no
net use K: \\SomeServer\SomeShare
net use F: \\SomeServer\Finance
Hi again Pegasus,

The reason I was having trouble was unrelated to your
suggestion:

I use a product called NetSwitcher to allow me to change
between my (multiple) network configurations more
conveniently.

NetSwitcher apparently has a mapping setting of which I was
unaware, and that had fixed my difficulty.

I regret any inconvenience, and sincerely appreciate your
help on this,
 
P

Pegasus \(MVP\)

Kenneth said:
Hi again Pegasus,

The reason I was having trouble was unrelated to your
suggestion:

I use a product called NetSwitcher to allow me to change
between my (multiple) network configurations more
conveniently.

NetSwitcher apparently has a mapping setting of which I was
unaware, and that had fixed my difficulty.

I regret any inconvenience, and sincerely appreciate your
help on this,

Thanks for the feedback.

Next time you write a batch file, remember to put double quotes
around your file names if they include spaces, e.g.

net use "Z:\\Server\\server data\\Paradox"
 
K

Kenneth

Thanks for the feedback.

Next time you write a batch file, remember to put double quotes
around your file names if they include spaces, e.g.

net use "Z:\\Server\\server data\\Paradox"

Thanks again for the quotes tip!
 

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