Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Windows XP

Windows XP Discuss the Microsoft Windows XP Operating System



Reply
 
LinkBack Thread Tools
  #1  
Old 10-30-2009, 09:00 AM
Kelvin
Newsgroup Contributor
 
Posts: n/a
Why can I map a local drive if I'm connected to the network but can't if not?

I need to map a drive to a local share for users that are off the network.
net use p: \\ComputerName\ShareName

I can map this if the user is connected to the network, but if I unplug the
laptop, I get this error "system error 1231 has occurred. the network
location cannot be reached".

What do I need to do to be able to map this drive when the user is off the
network?

Any help would be appreciated!

Kelvin


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 10-30-2009, 09:00 AM
  #2  
Old 10-30-2009, 09:20 AM
Terry R.
Newsgroup Contributor
 
Posts: n/a
Re: Why can I map a local drive if I'm connected to the network butcan't if not?

On 10/30/2009 9:52 AM On a whim, Kelvin pounded out on the keyboard

> I need to map a drive to a local share for users that are off the network.
> net use p: \\ComputerName\ShareName
>
> I can map this if the user is connected to the network, but if I unplug the
> laptop, I get this error "system error 1231 has occurred. the network
> location cannot be reached".
>
> What do I need to do to be able to map this drive when the user is off the
> network?
>
> Any help would be appreciated!
>
> Kelvin
>
>


Hi Kelvin,

You have to be connected and able to access the drive to map it.

So use a batch file to test for the existence of the drive and proceed
to map if it exists and exit without attempting if it doesn't. Then you
won't get any error messages.


Terry R.
--
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3  
Old 10-30-2009, 09:30 AM
Kelvin
Newsgroup Contributor
 
Posts: n/a
Re: Why can I map a local drive if I'm connected to the network but can't if not?

Sorry, not sure I follow.

With the eithernet cable attached to the laptop I can map the cable fine.
Without doing anything else, if I just pull the plug from the laptop, the
drive becomes unavailable.
"P: is not accessible" is the error when I click on the drive.
I plug the cable back in, wait a few second and the drive is there
(accessible) again.

I'm thinking there's a service or something that needs to be installed for
this to work when it's off the network...

I've run GPUpdate thinking there was a rights issue. But it does it with me
logged in as a Domain Admin as well as the user who I gave Power User rights
to...

I spend 99% of my time in a Doamin emvironment so am thinking this is sort
of a workgroup type issue...

I will incorporate this when I can get the drive to be accessible with the
cable unblugged...
I do have the net use command in a bat file, but am not testing if the drive
exists...

Kelvin

"Terry R." <F1Com@NOSPAMpobox.com> wrote in message
news:uxop6PYWKHA.1232@TK2MSFTNGP05.phx.gbl...
> On 10/30/2009 9:52 AM On a whim, Kelvin pounded out on the keyboard
>
>> I need to map a drive to a local share for users that are off the
>> network.
>> net use p: \\ComputerName\ShareName
>>
>> I can map this if the user is connected to the network, but if I unplug
>> the
>> laptop, I get this error "system error 1231 has occurred. the network
>> location cannot be reached".
>>
>> What do I need to do to be able to map this drive when the user is off
>> the
>> network?
>>
>> Any help would be appreciated!
>>
>> Kelvin
>>
>>

>
> Hi Kelvin,
>
> You have to be connected and able to access the drive to map it.
>
> So use a batch file to test for the existence of the drive and proceed to
> map if it exists and exit without attempting if it doesn't. Then you
> won't get any error messages.
>
>
> Terry R.
> --
> Anti-spam measures are included in my email address.
> Delete NOSPAM from the email address after clicking Reply.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4  
Old 10-30-2009, 09:50 AM
David B.
Newsgroup Contributor
 
Posts: n/a
Re: Why can I map a local drive if I'm connected to the network but can't if not?

So your trying to access a network share when your not connected to the
network? Think about that for a moment...

--


--
"Kelvin" <me@mydomain.com> wrote in message
news:%23UgrFWYWKHA.5208@TK2MSFTNGP05.phx.gbl...
> Sorry, not sure I follow.
>
> With the eithernet cable attached to the laptop I can map the cable fine.
> Without doing anything else, if I just pull the plug from the laptop, the
> drive becomes unavailable.
> "P: is not accessible" is the error when I click on the drive.
> I plug the cable back in, wait a few second and the drive is there
> (accessible) again.
>
> I'm thinking there's a service or something that needs to be installed for
> this to work when it's off the network...
>
> I've run GPUpdate thinking there was a rights issue. But it does it with
> me logged in as a Domain Admin as well as the user who I gave Power User
> rights to...
>
> I spend 99% of my time in a Doamin emvironment so am thinking this is sort
> of a workgroup type issue...
>
> I will incorporate this when I can get the drive to be accessible with the
> cable unblugged...
> I do have the net use command in a bat file, but am not testing if the
> drive exists...
>
> Kelvin
>
> "Terry R." <F1Com@NOSPAMpobox.com> wrote in message
> news:uxop6PYWKHA.1232@TK2MSFTNGP05.phx.gbl...
>> On 10/30/2009 9:52 AM On a whim, Kelvin pounded out on the keyboard
>>
>>> I need to map a drive to a local share for users that are off the
>>> network.
>>> net use p: \\ComputerName\ShareName
>>>
>>> I can map this if the user is connected to the network, but if I unplug
>>> the
>>> laptop, I get this error "system error 1231 has occurred. the network
>>> location cannot be reached".
>>>
>>> What do I need to do to be able to map this drive when the user is off
>>> the
>>> network?
>>>
>>> Any help would be appreciated!
>>>
>>> Kelvin
>>>
>>>

>>
>> Hi Kelvin,
>>
>> You have to be connected and able to access the drive to map it.
>>
>> So use a batch file to test for the existence of the drive and proceed to
>> map if it exists and exit without attempting if it doesn't. Then you
>> won't get any error messages.
>>
>>
>> Terry R.
>> --
>> Anti-spam measures are included in my email address.
>> Delete NOSPAM from the email address after clicking Reply.

>
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5  
Old 10-30-2009, 11:10 AM
John John - MVP
Newsgroup Contributor
 
Posts: n/a
Re: Why can I map a local drive if I'm connected to the network butcan't if not?

That's like pulling the cable wire out of the TV and then wondering why
it is that you can't receive any cable channels...

John

Kelvin wrote:
> Sorry, not sure I follow.
>
> With the eithernet cable attached to the laptop I can map the cable fine.
> Without doing anything else, if I just pull the plug from the laptop, the
> drive becomes unavailable.
> "P: is not accessible" is the error when I click on the drive.
> I plug the cable back in, wait a few second and the drive is there
> (accessible) again.
>
> I'm thinking there's a service or something that needs to be installed for
> this to work when it's off the network...
>
> I've run GPUpdate thinking there was a rights issue. But it does it with me
> logged in as a Domain Admin as well as the user who I gave Power User rights
> to...
>
> I spend 99% of my time in a Doamin emvironment so am thinking this is sort
> of a workgroup type issue...
>
> I will incorporate this when I can get the drive to be accessible with the
> cable unblugged...
> I do have the net use command in a bat file, but am not testing if the drive
> exists...
>
> Kelvin
>
> "Terry R." <F1Com@NOSPAMpobox.com> wrote in message
> news:uxop6PYWKHA.1232@TK2MSFTNGP05.phx.gbl...
>> On 10/30/2009 9:52 AM On a whim, Kelvin pounded out on the keyboard
>>
>>> I need to map a drive to a local share for users that are off the
>>> network.
>>> net use p: \\ComputerName\ShareName
>>>
>>> I can map this if the user is connected to the network, but if I unplug
>>> the
>>> laptop, I get this error "system error 1231 has occurred. the network
>>> location cannot be reached".
>>>
>>> What do I need to do to be able to map this drive when the user is off
>>> the
>>> network?
>>>
>>> Any help would be appreciated!
>>>
>>> Kelvin
>>>
>>>

>> Hi Kelvin,
>>
>> You have to be connected and able to access the drive to map it.
>>
>> So use a batch file to test for the existence of the drive and proceed to
>> map if it exists and exit without attempting if it doesn't. Then you
>> won't get any error messages.
>>
>>
>> Terry R.
>> --
>> Anti-spam measures are included in my email address.
>> Delete NOSPAM from the email address after clicking Reply.

>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #6  
Old 10-30-2009, 11:20 AM
Kelvin
Newsgroup Contributor
 
Posts: n/a
Re: Why can I map a local drive if I'm connected to the network but can't if not?

No, I'm mapping the drive the the local computer, that has a shared folder..

I have an application that when the users are on the network have a "P:"
drive.
When their off the network I still need them to have a "P:" drive.
\\fileservername\sharename\programfolder
\\laptopname\sharename\programfolder

Kelvin


"David B." <mail@nomail.net> wrote in message
news:e%23qrWjYWKHA.3428@TK2MSFTNGP06.phx.gbl...
> So your trying to access a network share when your not connected to the
> network? Think about that for a moment...
>
> --
>
>
> --
> "Kelvin" <me@mydomain.com> wrote in message
> news:%23UgrFWYWKHA.5208@TK2MSFTNGP05.phx.gbl...
>> Sorry, not sure I follow.
>>
>> With the eithernet cable attached to the laptop I can map the cable fine.
>> Without doing anything else, if I just pull the plug from the laptop, the
>> drive becomes unavailable.
>> "P: is not accessible" is the error when I click on the drive.
>> I plug the cable back in, wait a few second and the drive is there
>> (accessible) again.
>>
>> I'm thinking there's a service or something that needs to be installed
>> for this to work when it's off the network...
>>
>> I've run GPUpdate thinking there was a rights issue. But it does it with
>> me logged in as a Domain Admin as well as the user who I gave Power User
>> rights to...
>>
>> I spend 99% of my time in a Doamin emvironment so am thinking this is
>> sort of a workgroup type issue...
>>
>> I will incorporate this when I can get the drive to be accessible with
>> the cable unblugged...
>> I do have the net use command in a bat file, but am not testing if the
>> drive exists...
>>
>> Kelvin
>>
>> "Terry R." <F1Com@NOSPAMpobox.com> wrote in message
>> news:uxop6PYWKHA.1232@TK2MSFTNGP05.phx.gbl...
>>> On 10/30/2009 9:52 AM On a whim, Kelvin pounded out on the keyboard
>>>
>>>> I need to map a drive to a local share for users that are off the
>>>> network.
>>>> net use p: \\ComputerName\ShareName
>>>>
>>>> I can map this if the user is connected to the network, but if I unplug
>>>> the
>>>> laptop, I get this error "system error 1231 has occurred. the network
>>>> location cannot be reached".
>>>>
>>>> What do I need to do to be able to map this drive when the user is off
>>>> the
>>>> network?
>>>>
>>>> Any help would be appreciated!
>>>>
>>>> Kelvin
>>>>
>>>>
>>>
>>> Hi Kelvin,
>>>
>>> You have to be connected and able to access the drive to map it.
>>>
>>> So use a batch file to test for the existence of the drive and proceed
>>> to map if it exists and exit without attempting if it doesn't. Then you
>>> won't get any error messages.
>>>
>>>
>>> Terry R.
>>> --
>>> Anti-spam measures are included in my email address.
>>> Delete NOSPAM from the email address after clicking Reply.

>>
>>

>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #7  
Old 10-30-2009, 11:20 AM
3c273
Newsgroup Contributor
 
Posts: n/a
Re: Why can I map a local drive if I'm connected to the network but can't if not?

If the drive you are trying to map is on the same machine, use the subst
command instead.
subst p: c:\path_to_local_share
Louis

"Kelvin" <me@mydomain.com> wrote in message
news:O%23NgpFYWKHA.1280@TK2MSFTNGP04.phx.gbl...
> I need to map a drive to a local share for users that are off the network.
> net use p: \\ComputerName\ShareName
>
> I can map this if the user is connected to the network, but if I unplug

the
> laptop, I get this error "system error 1231 has occurred. the network
> location cannot be reached".
>
> What do I need to do to be able to map this drive when the user is off the
> network?
>
> Any help would be appreciated!
>
> Kelvin
>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #8  
Old 10-30-2009, 11:40 AM
amdrit
Newsgroup Contributor
 
Posts: n/a
Re: Why can I map a local drive if I'm connected to the network but can't if not?

Subst is the command you want to use when mapping locally. Mapping drives
as you propose, you are really using the net.exe to do so, it is attempting
to get your loopback address (127.0.0.1) and since you are not plugged in
your loopback doesn't exist.


"3c273" <nospam@nospam.com> wrote in message
news:OqaBCVZWKHA.1280@TK2MSFTNGP04.phx.gbl...
> If the drive you are trying to map is on the same machine, use the subst
> command instead.
> subst p: c:\path_to_local_share
> Louis
>
> "Kelvin" <me@mydomain.com> wrote in message
> news:O%23NgpFYWKHA.1280@TK2MSFTNGP04.phx.gbl...
>> I need to map a drive to a local share for users that are off the
>> network.
>> net use p: \\ComputerName\ShareName
>>
>> I can map this if the user is connected to the network, but if I unplug

> the
>> laptop, I get this error "system error 1231 has occurred. the network
>> location cannot be reached".
>>
>> What do I need to do to be able to map this drive when the user is off
>> the
>> network?
>>
>> Any help would be appreciated!
>>
>> Kelvin
>>
>>

>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #9  
Old 10-30-2009, 11:50 AM
amdrit
Newsgroup Contributor
 
Posts: n/a
Re: Why can I map a local drive if I'm connected to the network but can't if not?

That is just a silly response. If he were trying to connect to an external
resource, your barb would apply. He is connecting locally and essentially
didn't realize the mechanics of net use commands or that subst would be the
viable option for local resources.


"John John - MVP" <audetweld@nbnet.nb.ca> wrote in message
news:OEJvlQZWKHA.4816@TK2MSFTNGP06.phx.gbl...
> That's like pulling the cable wire out of the TV and then wondering why it
> is that you can't receive any cable channels...
>
> John
>
> Kelvin wrote:
>> Sorry, not sure I follow.
>>
>> With the eithernet cable attached to the laptop I can map the cable fine.
>> Without doing anything else, if I just pull the plug from the laptop, the
>> drive becomes unavailable.
>> "P: is not accessible" is the error when I click on the drive.
>> I plug the cable back in, wait a few second and the drive is there
>> (accessible) again.
>>
>> I'm thinking there's a service or something that needs to be installed
>> for this to work when it's off the network...
>>
>> I've run GPUpdate thinking there was a rights issue. But it does it with
>> me logged in as a Domain Admin as well as the user who I gave Power User
>> rights to...
>>
>> I spend 99% of my time in a Doamin emvironment so am thinking this is
>> sort of a workgroup type issue...
>>
>> I will incorporate this when I can get the drive to be accessible with
>> the cable unblugged...
>> I do have the net use command in a bat file, but am not testing if the
>> drive exists...
>>
>> Kelvin
>>
>> "Terry R." <F1Com@NOSPAMpobox.com> wrote in message
>> news:uxop6PYWKHA.1232@TK2MSFTNGP05.phx.gbl...
>>> On 10/30/2009 9:52 AM On a whim, Kelvin pounded out on the keyboard
>>>
>>>> I need to map a drive to a local share for users that are off the
>>>> network.
>>>> net use p: \\ComputerName\ShareName
>>>>
>>>> I can map this if the user is connected to the network, but if I unplug
>>>> the
>>>> laptop, I get this error "system error 1231 has occurred. the network
>>>> location cannot be reached".
>>>>
>>>> What do I need to do to be able to map this drive when the user is off
>>>> the
>>>> network?
>>>>
>>>> Any help would be appreciated!
>>>>
>>>> Kelvin
>>>>
>>>>
>>> Hi Kelvin,
>>>
>>> You have to be connected and able to access the drive to map it.
>>>
>>> So use a batch file to test for the existence of the drive and proceed
>>> to map if it exists and exit without attempting if it doesn't. Then you
>>> won't get any error messages.
>>>
>>>
>>> Terry R.
>>> --
>>> Anti-spam measures are included in my email address.
>>> Delete NOSPAM from the email address after clicking Reply.

>>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #10  
Old 10-30-2009, 12:00 PM
Kelvin
Newsgroup Contributor
 
Posts: n/a
Re: Why can I map a local drive if I'm connected to the network but can't if not?

Thanks to those that sugested the subst command, that is the answer I was
looking for!

Thanks!

Kelvin


"amdrit" <amdrit********.com> wrote in message
news:%23CQJEhZWKHA.5368@TK2MSFTNGP02.phx.gbl...
> Subst is the command you want to use when mapping locally. Mapping drives
> as you propose, you are really using the net.exe to do so, it is
> attempting to get your loopback address (127.0.0.1) and since you are not
> plugged in your loopback doesn't exist.
>
>
> "3c273" <nospam@nospam.com> wrote in message
> news:OqaBCVZWKHA.1280@TK2MSFTNGP04.phx.gbl...
>> If the drive you are trying to map is on the same machine, use the subst
>> command instead.
>> subst p: c:\path_to_local_share
>> Louis
>>
>> "Kelvin" <me@mydomain.com> wrote in message
>> news:O%23NgpFYWKHA.1280@TK2MSFTNGP04.phx.gbl...
>>> I need to map a drive to a local share for users that are off the
>>> network.
>>> net use p: \\ComputerName\ShareName
>>>
>>> I can map this if the user is connected to the network, but if I unplug

>> the
>>> laptop, I get this error "system error 1231 has occurred. the network
>>> location cannot be reached".
>>>
>>> What do I need to do to be able to map this drive when the user is off
>>> the
>>> network?
>>>
>>> Any help would be appreciated!
>>>
>>> Kelvin
>>>
>>>

>>
>>

>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #11  
Old 10-30-2009, 01:10 PM
John John - MVP
Newsgroup Contributor
 
Posts: n/a
Re: Why can I map a local drive if I'm connected to the network butcan't if not?

Given his explanation the response was to be expected:

"With the eithernet cable attached to the laptop I can map the cable
fine. Without doing anything else, if I just pull the plug from the
laptop, the drive becomes unavailable."

Louis had the answer, his crystal ball is clearer than mine today...

John

amdrit wrote:
> That is just a silly response. If he were trying to connect to an external
> resource, your barb would apply. He is connecting locally and essentially
> didn't realize the mechanics of net use commands or that subst would be the
> viable option for local resources.
>
>
> "John John - MVP" <audetweld@nbnet.nb.ca> wrote in message
> news:OEJvlQZWKHA.4816@TK2MSFTNGP06.phx.gbl...
>> That's like pulling the cable wire out of the TV and then wondering why it
>> is that you can't receive any cable channels...
>>
>> John
>>
>> Kelvin wrote:
>>> Sorry, not sure I follow.
>>>
>>> With the eithernet cable attached to the laptop I can map the cable fine.
>>> Without doing anything else, if I just pull the plug from the laptop, the
>>> drive becomes unavailable.
>>> "P: is not accessible" is the error when I click on the drive.
>>> I plug the cable back in, wait a few second and the drive is there
>>> (accessible) again.
>>>
>>> I'm thinking there's a service or something that needs to be installed
>>> for this to work when it's off the network...
>>>
>>> I've run GPUpdate thinking there was a rights issue. But it does it with
>>> me logged in as a Domain Admin as well as the user who I gave Power User
>>> rights to...
>>>
>>> I spend 99% of my time in a Doamin emvironment so am thinking this is
>>> sort of a workgroup type issue...
>>>
>>> I will incorporate this when I can get the drive to be accessible with
>>> the cable unblugged...
>>> I do have the net use command in a bat file, but am not testing if the
>>> drive exists...
>>>
>>> Kelvin
>>>
>>> "Terry R." <F1Com@NOSPAMpobox.com> wrote in message
>>> news:uxop6PYWKHA.1232@TK2MSFTNGP05.phx.gbl...
>>>> On 10/30/2009 9:52 AM On a whim, Kelvin pounded out on the keyboard
>>>>
>>>>> I need to map a drive to a local share for users that are off the
>>>>> network.
>>>>> net use p: \\ComputerName\ShareName
>>>>>
>>>>> I can map this if the user is connected to the network, but if I unplug
>>>>> the
>>>>> laptop, I get this error "system error 1231 has occurred. the network
>>>>> location cannot be reached".
>>>>>
>>>>> What do I need to do to be able to map this drive when the user is off
>>>>> the
>>>>> network?
>>>>>
>>>>> Any help would be appreciated!
>>>>>
>>>>> Kelvin
>>>>>
>>>>>
>>>> Hi Kelvin,
>>>>
>>>> You have to be connected and able to access the drive to map it.
>>>>
>>>> So use a batch file to test for the existence of the drive and proceed
>>>> to map if it exists and exit without attempting if it doesn't. Then you
>>>> won't get any error messages.
>>>>
>>>>
>>>> Terry R.
>>>> --
>>>> Anti-spam measures are included in my email address.
>>>> Delete NOSPAM from the email address after clicking Reply.

>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #12  
Old 10-30-2009, 02:40 PM
LVTravel
Newsgroup Contributor
 
Posts: n/a
Re: Why can I map a local drive if I'm connected to the network but can't if not?



"Kelvin" <me@mydomain.com> wrote in message
news:u3zkkTZWKHA.1236@TK2MSFTNGP05.phx.gbl...
> No, I'm mapping the drive the the local computer, that has a shared
> folder..
>
> I have an application that when the users are on the network have a "P:"
> drive.
> When their off the network I still need them to have a "P:" drive.
> \\fileservername\sharename\programfolder
> \\laptopname\sharename\programfolder
>
> Kelvin
>
>
> "David B." <mail@nomail.net> wrote in message
> news:e%23qrWjYWKHA.3428@TK2MSFTNGP06.phx.gbl...
>> So your trying to access a network share when your not connected to the
>> network? Think about that for a moment...
>>
>> --
>>
>>
>> --
>> "Kelvin" <me@mydomain.com> wrote in message
>> news:%23UgrFWYWKHA.5208@TK2MSFTNGP05.phx.gbl...
>>> Sorry, not sure I follow.
>>>
>>> With the eithernet cable attached to the laptop I can map the cable
>>> fine.
>>> Without doing anything else, if I just pull the plug from the laptop,
>>> the drive becomes unavailable.
>>> "P: is not accessible" is the error when I click on the drive.
>>> I plug the cable back in, wait a few second and the drive is there
>>> (accessible) again.
>>>
>>> I'm thinking there's a service or something that needs to be installed
>>> for this to work when it's off the network...
>>>
>>> I've run GPUpdate thinking there was a rights issue. But it does it with
>>> me logged in as a Domain Admin as well as the user who I gave Power User
>>> rights to...
>>>
>>> I spend 99% of my time in a Doamin emvironment so am thinking this is
>>> sort of a workgroup type issue...
>>>
>>> I will incorporate this when I can get the drive to be accessible with
>>> the cable unblugged...
>>> I do have the net use command in a bat file, but am not testing if the
>>> drive exists...
>>>
>>> Kelvin
>>>
>>> "Terry R." <F1Com@NOSPAMpobox.com> wrote in message
>>> news:uxop6PYWKHA.1232@TK2MSFTNGP05.phx.gbl...
>>>> On 10/30/2009 9:52 AM On a whim, Kelvin pounded out on the keyboard
>>>>
>>>>> I need to map a drive to a local share for users that are off the
>>>>> network.
>>>>> net use p: \\ComputerName\ShareName
>>>>>
>>>>> I can map this if the user is connected to the network, but if I
>>>>> unplug the
>>>>> laptop, I get this error "system error 1231 has occurred. the network
>>>>> location cannot be reached".
>>>>>
>>>>> What do I need to do to be able to map this drive when the user is off
>>>>> the
>>>>> network?
>>>>>
>>>>> Any help would be appreciated!
>>>>>
>>>>> Kelvin
>>>>>
>>>>>
>>>>
>>>> Hi Kelvin,
>>>>
>>>> You have to be connected and able to access the drive to map it.
>>>>
>>>> So use a batch file to test for the existence of the drive and proceed
>>>> to map if it exists and exit without attempting if it doesn't. Then
>>>> you won't get any error messages.
>>>>
>>>>
>>>> Terry R.
>>>> --
>>>> Anti-spam measures are included in my email address.
>>>> Delete NOSPAM from the email address after clicking Reply.
>>>
>>>

>>

>
>


Create three batch files and place them on the desktop or a shortcut to them
on the quick launch toolbar, one for on network and two for off network.

On network would be:

net use p: \\ComputerName\ShareName /persistent:no

They run this batch file when on the network. The /persistent:no will
un-map the drive when the computer is turned off to enable the off-network
batch file to run OK.


Off network use the Subst command.

To create the drive letter run this command in the batch file and place the
path in the command that the program needs to look at.

SUBST P: C:\path_for_substitute_data_folder

Before shutting down run this batch file to allow the P drive to be
"unattached" to enable the net use command to be used later.

SUBST P: /D


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #13  
Old 10-30-2009, 05:00 PM
Bruce Chambers
Newsgroup Contributor
 
Posts: n/a
Re: Why can I map a local drive if I'm connected to the network butcan't if not?

Kelvin wrote:
> Sorry, not sure I follow.
>
> With the eithernet cable attached to the laptop I can map the cable fine.
> Without doing anything else, if I just pull the plug from the laptop, the
> drive becomes unavailable.
> "P: is not accessible" is the error when I click on the drive.
> I plug the cable back in, wait a few second and the drive is there
> (accessible) again.
>


All perfectly normal.


> I'm thinking there's a service or something that needs to be installed for
> this to work when it's off the network...
>



It CAN'T work when it's 'off the network." I don't even understand how
you could possibly expect to connect to a network share if the computer
isn't connected. The very concept makes no sense.




--

Bruce Chambers

Help us help you:
http://www.catb.org/~esr/faqs/smart-questions.html

http://support.microsoft.com/default.aspx/kb/555375

They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. ~Benjamin Franklin

Many people would rather die than think; in fact, most do. ~Bertrand Russell

The philosopher has never killed any priests, whereas the priest has
killed a great many philosophers.
~ Denis Diderot
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #14  
Old 10-30-2009, 05:00 PM
Bruce Chambers
Newsgroup Contributor
 
Posts: n/a
Re: Why can I map a local drive if I'm connected to the network butcan't if not?

amdrit wrote:
> That is just a silly response. If he were trying to connect to an external
> resource, your barb would apply.


No, it's still apt.

> He is connecting locally...



No, he's not even trying to connect locally if he's using a Net command.





--

Bruce Chambers

Help us help you:
http://www.catb.org/~esr/faqs/smart-questions.html

http://support.microsoft.com/default.aspx/kb/555375

They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. ~Benjamin Franklin

Many people would rather die than think; in fact, most do. ~Bertrand Russell

The philosopher has never killed any priests, whereas the priest has
killed a great many philosophers.
~ Denis Diderot
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #15  
Old 11-02-2009, 03:20 AM
Christian Schaeffler
Newsgroup Contributor
 
Posts: n/a
Re: Why can I map a local drive if I'm connected to the network but can't if not?

One more thing:
Just make sure your network card is not deactivated when you unplug the
cable... then u can use net use instead of subst

"Kelvin" <me@mydomain.com> schrieb im Newsbeitrag
news:%23PvtNsZWKHA.4416@TK2MSFTNGP02.phx.gbl...
> Thanks to those that sugested the subst command, that is the answer I was
> looking for!
>
> Thanks!
>
> Kelvin
>
>
> "amdrit" <amdrit********.com> wrote in message
> news:%23CQJEhZWKHA.5368@TK2MSFTNGP02.phx.gbl...
>> Subst is the command you want to use when mapping locally. Mapping
>> drives as you propose, you are really using the net.exe to do so, it is
>> attempting to get your loopback address (127.0.0.1) and since you are not
>> plugged in your loopback doesn't exist.
>>
>>
>> "3c273" <nospam@nospam.com> wrote in message
>> news:OqaBCVZWKHA.1280@TK2MSFTNGP04.phx.gbl...
>>> If the drive you are trying to map is on the same machine, use the subst
>>> command instead.
>>> subst p: c:\path_to_local_share
>>> Louis
>>>
>>> "Kelvin" <me@mydomain.com> wrote in message
>>> news:O%23NgpFYWKHA.1280@TK2MSFTNGP04.phx.gbl...
>>>> I need to map a drive to a local share for users that are off the
>>>> network.
>>>> net use p: \\ComputerName\ShareName
>>>>
>>>> I can map this if the user is connected to the network, but if I unplug
>>> the
>>>> laptop, I get this error "system error 1231 has occurred. the network
>>>> location cannot be reached".
>>>>
>>>> What do I need to do to be able to map this drive when the user is off
>>>> the
>>>> network?
>>>>
>>>> Any help would be appreciated!
>>>>
>>>> Kelvin
>>>>
>>>>
>>>
>>>

>>
>>

>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting network drive as local partition - like Z: noahwallach Windows XP 2 08-22-2009 08:10 PM
Default Notebook Location: network or local drive? Ferdi Microsoft OneNote 1 01-24-2009 11:20 AM
Network Connection Icon - Shows Not Connected when am Connected. GW Windows XP 2 04-20-2008 05:17 AM
Network says I'm only connected Local! Internet VERY SLOW HELP Ple Guy Windows Vista 1 04-21-2007 11:00 AM
Backup local drive to network drive sjs Windows XP 3 01-15-2007 07:00 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 04:06 AM.


2003 - 2010 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0