* Cygwin UNC path conversion functions?
@ 2023-11-30 3:44 Martin Wege
2023-12-01 9:15 ` Corinna Vinschen
0 siblings, 1 reply; 4+ messages in thread
From: Martin Wege @ 2023-11-30 3:44 UTC (permalink / raw)
To: cygwin
Hello,
does Cygwin have UNC path conversion functions, for example UNC path
to DOS mount letter, UNC path to file URL?
Thanks,
Martin
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Cygwin UNC path conversion functions?
2023-11-30 3:44 Cygwin UNC path conversion functions? Martin Wege
@ 2023-12-01 9:15 ` Corinna Vinschen
2023-12-18 16:38 ` Martin Wege
0 siblings, 1 reply; 4+ messages in thread
From: Corinna Vinschen @ 2023-12-01 9:15 UTC (permalink / raw)
To: cygwin
On Nov 30 04:44, Martin Wege via Cygwin wrote:
> Hello,
>
> does Cygwin have UNC path conversion functions, for example UNC path
> to DOS mount letter, UNC path to file URL?
Neither Cygwin nor Windows really care for that when using paths.
Either you use a drive letter or you use an UNC path, and either it
exists or not. Everything else is done in the mount manager or kernel.
If you want to look for drive letter to UNC path conversion, you can
utilise QueryDosDevice.
Corinna
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Cygwin UNC path conversion functions?
2023-12-01 9:15 ` Corinna Vinschen
@ 2023-12-18 16:38 ` Martin Wege
2023-12-18 17:36 ` Brian Inglis
0 siblings, 1 reply; 4+ messages in thread
From: Martin Wege @ 2023-12-18 16:38 UTC (permalink / raw)
To: cygwin
On Fri, Dec 1, 2023 at 10:15 AM Corinna Vinschen via Cygwin
<cygwin@cygwin.com> wrote:
>
> On Nov 30 04:44, Martin Wege via Cygwin wrote:
> > Hello,
> >
> > does Cygwin have UNC path conversion functions, for example UNC path
> > to DOS mount letter, UNC path to file URL?
>
> Neither Cygwin nor Windows really care for that when using paths.
> Either you use a drive letter or you use an UNC path, and either it
> exists or not. Everything else is done in the mount manager or kernel.
>
> If you want to look for drive letter to UNC path conversion, you can
> utilise QueryDosDevice.
Does Cygwin have a command line tool for that?
Thanks,
Martin
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Cygwin UNC path conversion functions?
2023-12-18 16:38 ` Martin Wege
@ 2023-12-18 17:36 ` Brian Inglis
0 siblings, 0 replies; 4+ messages in thread
From: Brian Inglis @ 2023-12-18 17:36 UTC (permalink / raw)
To: cygwin
On 2023-12-18 09:38, Martin Wege via Cygwin wrote:
> On Fri, Dec 1, 2023 at 10:15 AM Corinna Vinschen via Cygwin wrote:
>> On Nov 30 04:44, Martin Wege via Cygwin wrote:
>>> does Cygwin have UNC path conversion functions, for example UNC path
>>> to DOS mount letter, UNC path to file URL?
>> Neither Cygwin nor Windows really care for that when using paths.
>> Either you use a drive letter or you use an UNC path, and either it
>> exists or not. Everything else is done in the mount manager or kernel.
>> If you want to look for drive letter to UNC path conversion, you can
>> utilise QueryDosDevice.
> Does Cygwin have a command line tool for that?
https://cygwin.com/cygwin-ug-net/cygpath.html
or maybe
https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/fsutil
--
Take care. Thanks, Brian Inglis Calgary, Alberta, Canada
La perfection est atteinte Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut
-- Antoine de Saint-Exupéry
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-12-18 17:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-30 3:44 Cygwin UNC path conversion functions? Martin Wege
2023-12-01 9:15 ` Corinna Vinschen
2023-12-18 16:38 ` Martin Wege
2023-12-18 17:36 ` Brian Inglis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).