public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Brian Inglis <Brian.Inglis@Shaw.ca>
To: Martin Wege <martin.l.wege@gmail.com>, cygwin@cygwin.com
Subject: Re: Find free drive letter in Cygwin?
Date: Mon, 7 Aug 2023 12:43:44 -0600	[thread overview]
Message-ID: <8e62adb7-34b8-2d54-91f5-4f63cfd9d3fe@Shaw.ca> (raw)
In-Reply-To: <CANH4o6NwvX30K=X_06vh0w5MYCPgcRXZKJL91aX1UbnWsAJe4Q@mail.gmail.com>

On 2023-08-07 10:52, Martin Wege via Cygwin wrote:
> What is the official cygwin way to find a free drive letter, which can
> be used in a script to mount a drive?

Just use the Windows UNC network path directly on Cygwin with '/' not '\'.

For Windows, it may still be NET USE * \\... but have not used it in decades!

Cygwin should pick it up and automount it under /proc/cygdrive/?/ but see 
disclaimer above.

-- 
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

  reply	other threads:[~2023-08-07 18:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-07 16:52 Martin Wege
2023-08-07 18:43 ` Brian Inglis [this message]
2023-08-07 21:17   ` Martin Wege
2023-09-15 13:00     ` Andrey Repin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8e62adb7-34b8-2d54-91f5-4f63cfd9d3fe@Shaw.ca \
    --to=brian.inglis@shaw.ca \
    --cc=cygwin@cygwin.com \
    --cc=martin.l.wege@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).