From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta002.cacentral1.a.cloudfilter.net (omta002.cacentral1.a.cloudfilter.net [3.97.99.33]) by sourceware.org (Postfix) with ESMTPS id 237B53858D37 for ; Mon, 7 Aug 2023 18:43:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 237B53858D37 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=Shaw.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=shaw.ca Received: from shw-obgw-4002a.ext.cloudfilter.net ([10.228.9.250]) by cmsmtp with ESMTP id T0cXqqAU56NwhT5Cjq9ZaC; Mon, 07 Aug 2023 18:43:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=shaw.ca; s=s20180605; t=1691433825; bh=q6mO7OAXjs9HDkAi80JWjkPfqkpDd4KwQyamEsNhxyM=; h=Date:Reply-To:Subject:To:References:From:In-Reply-To; b=HkJMAKNiEh8exjwv1gefraJjXRY4CEBj473JF5pv6P0S5gnHc9dc0VW0BkekLvZ0L ajaOW4gcGOtfyCPx5W/QpO+YMopg6qJx+3+KPN0EAswW9EnC0p/MsHVAn3JO/nl6KG a7rXJa0ndIjFxyU2iP4O7o1/bVJ/iLEkLbYuYfhAkE1DtTutaZu3V9ckbI23byGl+Q 2B3M8+4bMOXsE8Ilo7c+o8+OkLAUMgaptFsf3YICX0bL+Ke9o2pvLDFNnpjBmQ4WOP Q0A+QP3VvsIZH0gb4MXEDqci09DVuZrXMhWjSYCN5HP/xsy8Cb/n7MQRHvUrHN4iiF /Dbc38axT+4uw== Received: from [10.0.0.5] ([184.64.102.149]) by cmsmtp with ESMTP id T5Cjqmh68yAOeT5CjqhRpH; Mon, 07 Aug 2023 18:43:45 +0000 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 Reply-To: Brian.Inglis@Shaw.ca Subject: Re: Find free drive letter in Cygwin? Content-Language: en-CA To: Martin Wege , cygwin@cygwin.com References: From: Brian Inglis Organization: Inglis In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 List-Id: 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