-
Nov 17th, 2021, 04:17 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] UNC Path not showing Name of Share only get IP address
I recently rebuilt a new computer and nothing on my Nas has changed.
However, when i want to get the share Name for a mapped drive, i only get the IP address now.
Is it something on my PC i need to change.
On Windows 10 Pro 21H1
Before i got 'DriveShareName' now i get '123.123.123.123' < ip only an example
Pls see code below that i use
Code:
http://vbnet.mvps.org/index.html?code/network/uncfrommappeddrive.htm
Last edited by k_zeon; Nov 17th, 2021 at 04:22 PM.
-
Nov 17th, 2021, 04:30 PM
#2
Re: UNC Path not showing Name of Share only get IP address
Does the new computer use the same version of Windows?
Did you install any software from the NAS manufacture on the old computer? On the new computer?
Make/Model of NAS?
-
Nov 17th, 2021, 04:44 PM
#3
Thread Starter
Hyperactive Member
Re: UNC Path not showing Name of Share only get IP address
Originally Posted by jdc2000
Does the new computer use the same version of Windows?
Did you install any software from the NAS manufacture on the old computer? On the new computer?
Make/Model of NAS?
same windows version, same software from Nas Manufacturer. Qnap
Every code i have tried just gives me the ip address. I used to get a sharename
-
Nov 17th, 2021, 05:16 PM
#4
Re: UNC Path not showing Name of Share only get IP address
I just tested a WNetGetConnection() call and it returns the share path just fine, not its IP address.
It probably has something to do with how you mapped the drive.
What does "NET USE" show when typed into a Cmd.exe window?
-
Nov 17th, 2021, 05:28 PM
#5
Thread Starter
Hyperactive Member
Re: UNC Path not showing Name of Share only get IP address
they all show ip address's
I will disconnect and reconnect and see if i have missed an option
-
Nov 17th, 2021, 05:32 PM
#6
Thread Starter
Hyperactive Member
Re: UNC Path not showing Name of Share only get IP address
Originally Posted by dilettante
I just tested a WNetGetConnection() call and it returns the share path just fine, not its IP address.
It probably has something to do with how you mapped the drive.
What does "NET USE" show when typed into a Cmd.exe window?
Tks dilettante. it was the way i mapped them. remapped and all showing the sharenames again.
p.s. how do i mark this as resolved. i dont see any options. tks
-
Nov 17th, 2021, 06:01 PM
#7
Re: UNC Path not showing Name of Share only get IP address
At the top of the page [just above the first post] there is a thread tools drop down where there is the option to mark as resolved.
-
Nov 18th, 2021, 03:03 AM
#8
Thread Starter
Hyperactive Member
Re: UNC Path not showing Name of Share only get IP address
Originally Posted by DataMiser
At the top of the page [just above the first post] there is a thread tools drop down where there is the option to mark as resolved.
tks DataMiser
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|