Re: MapNetworkDrive problem

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"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
Could the problem be that the (2) boxes have different levels of security.
I mean W98 uses share level security as opposed to XP. It required me to
setup a user account on XP before I could get my W98 box to see the XP's
drive as a mapped drive.


.



Relevant Pages

  • Re: Network drive problems
    ... of our XP boxes have been spared the problem. ... bugged drives will no longer be an issue. ... >I am experiencing the same problem: I boot up, log into Windows XP ... And I suspect it ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: CFileDialog Does not show mapped files in system account
    ... and don't create dialog boxes or any other kind of windows ... drives when we run it under system account, ... Any body tell me why did its behaviour change under system account, ...
    (microsoft.public.vc.language)
  • Make the Most of Your New PC
    ... mint Windows Vista computer this holiday ... the Workgroup name is exactly the same for all the computers in the ... that doesn't support USB 2.0) and low-capacity portable hard drives. ...
    (microsoft.public.windows.vista.general)
  • Re: Problem with XP scheduler?
    ... While it is possible to write a BIOS vector, ... With SATA drives, ... The reason for a lack of malware on Unix, Linux, MAC, etc. is that those ... With 90% of computers running Windows ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Possible Sleeping Virus
    ... Remember that System Restore only tracks SYSTEM files - not yours. ... You should periodically defragment your hard drives as well as check them ... using Windows XP "prettifications". ... You should at least turn on the built in firewall. ...
    (microsoft.public.windowsxp.newusers)