But I get different results depending on the NAS' host name used:
This works (from a Windows commandline):
- dir \\nas\myShare
- dir \\nas.mydomain.com\myShare
- dir \\nas.local\myShare
- dir \\192.168.x.y\myShare
Code: Select all
c:\>ping nas
Pinging nas.mydomain.com [192.168.1.5] with 32 bytes of data:
Reply from 192.168.1.5: bytes=32 time=1ms TTL=64
Control-C
^C
c:\>net view \\nas
Shared resources at \\nas
NAS
Share name Type Used as Comment
-------------------------------------------------------------------------------
MySharedFolder Disk
The command completed successfully.
Code: Select all
c:\>ping nas.mydomain.com
Pinging nas.mydomain.com [192.168.1.5] with 32 bytes of data:
Reply from 192.168.1.5: bytes=32 time<1ms TTL=64
Control-C
^C
c:\>net view \\nas.mydomain.com
Shared resources at \\nas.mydomain.com
NAS
Share name Type Used as Comment
-------------------------------------------------------------------------------
MySharedFolder Disk
The command completed successfully.
Code: Select all
c:\>ping nas.local
Pinging nas.local [192.168.1.5] with 32 bytes of data:
Reply from 192.168.1.5: bytes=32 time<1ms TTL=64
Control-C
^C
c:\>net view \\nas.local
System error 5 has occurred.
Access is denied.
Code: Select all
c:\>ping 192.168.1.5
Pinging 192.168.1.5 with 32 bytes of data:
Reply from 192.168.1.5: bytes=32 time<1ms TTL=64
Control-C
^C
c:\>net view \\192.168.1.5
System error 5 has occurred.
Access is denied.
Can you tell me the version of the system you are using?
Code: Select all
net use \\192.168.1.5\IPC$ /user:username password
Code: Select all
net use \\nas\ipc$ /user:xxxx
Code: Select all
dir \\nas\myshare
Code: Select all
dir \\192.168.1.5\myShare
Code: Select all
net use \\192.168.1.5\ipc$ /user:xxxx
Code: Select all
c:\>net use
New connections will be remembered.
There are no entries in the list.