Cannot set Label for drive in network mode

41 vues
Accéder directement au premier message non lu

phpeter

non lue,
20 janv. 2021, 17:36:3920/01/2021
à Dokan
I have mounted my Dokan drive using the DokanOptions.NetworkDrive option, and the label for the drive is "Network Drive (Y:)". I'd like to use a custom label, and have tried setting it via the registry key at HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\Y (as well as Y:, #Y, #Y: per this thread) but have not been able to get the label to change from "Network Drive".

Additionally, I noticed if I mount using DokanOptions.RemovableDrive option, the label that I set in Dokan's "GetVolumeInformation()" method displays properly.

Is there a way to set the label for the Dokan drive when in NetworkDrive mode? Or is this not possible?

Thank you,
Peter

Adrien JUND

non lue,
21 janv. 2021, 01:56:4021/01/2021
à do...@googlegroups.com
Hi,

Your device has a label. It is just not shown by explorer.
What is more common for network drives is a UNC. If you set one, it will be displayed by explorer.

--
You received this message because you are subscribed to the Google Groups "Dokan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dokan+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dokan/2493638b-780e-450f-866b-3516d2dbaf60n%40googlegroups.com.

phpeter

non lue,
21 janv. 2021, 11:48:3921/01/2021
à Dokan
That worked for me, thank you!

Are there any other side-effects of setting a UNC for the drive? Or do you have documentation on mounting the drive with a UNC set vs without a UNC set?

Adrien JUND

non lue,
21 janv. 2021, 12:12:1821/01/2021
à do...@googlegroups.com
We do not have much documentation about that. Microsoft doc will be a better source to exactly know what Iis a UNC. Globally, a UNC gives the ability for you drive to be accessed by \\myfs\dokan1
It is even mandatory for a proper usage of network drive.
Next major version of dokan will even force people to us one for network drive.

phpeter

non lue,
21 janv. 2021, 12:17:1121/01/2021
à Dokan
Ok that is helpful, thank you!
Répondre à tous
Répondre à l'auteur
Transférer
0 nouveau message