Find free drive letter in Cygwin?

Brian Inglis Brian.Inglis@Shaw.ca
Mon Aug 7 18:43:44 GMT 2023


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


More information about the Cygwin mailing list