delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/08/07/14:44:01

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 61B5D3858298
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1691433840;
bh=PPe3rW87nwepCqA5N7HgmdhibN582AHXESwTRzHCgEo=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=TL5Ctxj0rqyq7pDyITfPgyIHfjLelAnr2YfhBH7NDhhWhK8fbyjBLujv89F/GCnQr
D71S+4YsP+EVqkTc+aIL+zWmk4chtnb+fY4JgPlKITcaY8tsMntN68b5LhU3CeO/mH
DX9TV2u/G9EJSAwbYW79A+GzLwr7w9+u3mDj6EjM=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 237B53858D37
X-Authority-Analysis: v=2.4 cv=e5oV9Il/ c=1 sm=1 tr=0 ts=64d13b61
a=DxHlV3/gbUaP7LOF0QAmaA==:117 a=DxHlV3/gbUaP7LOF0QAmaA==:17
a=IkcTkHD0fZMA:10 a=oTY6U_8LLxEjV2DchIwA:9 a=QEXdDO2ut3YA:10
Message-ID: <8e62adb7-34b8-2d54-91f5-4f63cfd9d3fe@Shaw.ca>
Date: Mon, 7 Aug 2023 12:43:44 -0600
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Subject: Re: Find free drive letter in Cygwin?
To: Martin Wege <martin DOT l DOT wege AT gmail DOT com>, cygwin AT cygwin DOT com
References: <CANH4o6NwvX30K=X_06vh0w5MYCPgcRXZKJL91aX1UbnWsAJe4Q AT mail DOT gmail DOT com>
Organization: Inglis
In-Reply-To: <CANH4o6NwvX30K=X_06vh0w5MYCPgcRXZKJL91aX1UbnWsAJe4Q@mail.gmail.com>
X-CMAE-Envelope: MS4xfEBdOSj1m2h53BGHAxapvhsy+p6J2uPsbIZ4qGlkfIS2f/xV2LhqmbLDuah/wb+oR0MZ5eCtiZJOKTnRiOS4keWyzM3FsSzAoHyqZU3wfISgM73kYNBC
6d20vpddSK/THvEIrCgDkQyrOJCKH6j2ezhn7LBwJgA4uLEYa3UTkWWYvcS2qBRCA4DxgNdU2GorgERVJiyylLWO9mM+zNWkA5VvL0w6IkFRbds8rXGSSUkS
X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_LOW,
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Brian Inglis via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Brian DOT Inglis AT Shaw DOT ca
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 377Ii0AW004967

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

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019