Path: csiph.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc Subject: Re: Python (was Re: I did not inhale) Date: Mon, 19 Aug 2024 13:28:53 -0700 Organization: None to speak of Lines: 25 Message-ID: <87cym4cl4q.fsf@nosuchdomain.example.com> References: <20240412094809.811@kylheku.com> <87il0mm94y.fsf@tudado.org> <87il0lldf8.fsf@tudado.org> <20240815182717.189@kylheku.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 19 Aug 2024 22:28:56 +0200 (CEST) Injection-Info: dont-email.me; posting-host="3ea9296cf1a8fdd393a4fcaa89ba79f8"; logging-data="3146692"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+vWRz+fz49p5Cb97pgS008" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:9/MLhtL15XPkd0WcYjA7/dxtgRo= sha1:EcJZzIEDYSZk9crHpuFEwcyNdNQ= Xref: csiph.com comp.unix.shell:25395 comp.unix.programmer:16053 comp.lang.misc:10651 "Dmitry A. Kazakov" writes: > On 2024-08-19 10:45, Lawrence D'Oliveiro wrote: >> On Mon, 19 Aug 2024 09:37:39 +0200, Dmitry A. Kazakov wrote: [...] >>>> And single drive letters? >>> >>> They are dozens characters long actually, if you mean the device names. >> Drive names are only single letters. You’re not talking about >> reserved >> file names, are you? > > No, I am talking about proper file paths under Windows. Letters is a > DOS layer on top of it. E.g. see QueryDosDeviceW call. OK, I tried a test program that invokes QueryDosDeviceW() on L"C:". The result was "\Device\HarddiskVolume4". (That's not a C string literal. It contains two single backslash characters.) What can I do with that string? In what sense is it more "official" than "C:", or "Acer": (the volume's label), or "B64F-C8F7" (the volume's serial number)? -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */