Re: MapNetworkDrive problem
- From: "Rafael T" <okinawapro@xxxxxxxxxxx>
- Date: Wed, 15 Jun 2005 11:50:56 +0900
Eric to make sure,
try pinging the remote from computer from the one that does not work.
that way you will know if it is the network or not.
rafael
"Eric van Uden" <eric[ @ ]doornroosje[ . ]nl> wrote in message
news:uABFkhOcFHA.2936@xxxxxxxxxxxxxxxxxxxxxxx
> Hello Rafael,
>
> Thank you for your reply.
>
> Both machines have the same subnet and gateway settings.
> I use the same code on both Win98 and WinXp machines, so the account used
> is the same.
> I have thought about widening the subnet mask, though, to allow
> 192.168.100.x to be seen form 192.168.168.x pc's.
>
> Maybe there is success along that path.
>
> Regards,
>
> Eric
>
> "Rafael T" <okinawapro@xxxxxxxxxxx> schreef in bericht
> news:OMv%23poLcFHA.220@xxxxxxxxxxxxxxxxxxxxxxx
>> Eric,
>>
>> As you said it is probably a network problem.
>> Check the subnet mask and gateway address of the computer that works and
>> the one that doesn't.
>> Also the account to open the file has to reside on the computer that
>> holds the file.
>>
>> RT
>> "Eric van Uden" <eric[ @ ]doornroosje[ . ]nl> wrote in message
>> news:OkYpGuRbFHA.1504@xxxxxxxxxxxxxxxxxxxxxxx
>>> Hello,
>>>
>>> I suppose this is more of a networking question, but maybe some of you
>>> have experience with this.
>>> I have this code:
>>>
>>> -------------------------------------------
>>> letter = "Q:"
>>> target = "\\192.168.100.100\folder"
>>> account = "192.168.100.100\john"
>>> password = "sesame"
>>> Set fso = CreateObject("Scripting.FileSystemObject")
>>> Set nwo = CreateObject("WScript.Network")
>>> nwo.MapNetworkDrive letter, target, True, account, password
>>> -------------------------------------------
>>>
>>> A WindowsXP workstation with IP-address 192.168.168.11 will successfully
>>> create this mapping.
>>> A Windows 98SE workstation with IP-address 192.168.168.12 will fail.
>>> The problem seems to be that Windows 98 boxes will only map to drives in
>>> their own IP-range.
>>> The error message specifies that the network name is not found, and
>>> tests confirm that it is the 'target' part that causes the error.
>>>
>>> The mapping is only used inside the script, to copy a file to the mapped
>>> drive.
>>> Then the mapping is removed.
>>>
>>> Any clues to get this working for Windows 98 boxes would be welcome.
>>>
>>> Regards,
>>>
>>> Eric
>>>
>>
>>
>
>
.
- References:
- Re: MapNetworkDrive problem
- From: Rafael T
- Re: MapNetworkDrive problem
- Prev by Date: Re: WMI Script to Set The EnableDaylightSavingsTime
- Next by Date: Classes and Arrays
- Previous by thread: Re: MapNetworkDrive problem
- Next by thread: Re: MapNetworkDrive problem
- Index(es):
Relevant Pages
|