Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.news-service.com!nf14.news-service.com!not-for-mail From: "A.D. Fundum" Message-ID: Newsgroups: comp.os.os2.programmer.misc,comp.os.os2.programmer.tools Subject: Re: DosQueryPathInfo with correct case (was: Force gnu assembler to invoke the preprocessor) References: <4dfdcf49$0$7624$9b4e6d93@newsspool1.arcor-online.net> <97c9mpF42tU1@mid.uni-berlin.de> User-Agent: ProNews/2 V1.60.cp125 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@news-service.com Organization: News-Service.com Date: Mon, 04 Jul 2011 11:09:28 +0200 Lines: 37 NNTP-Posting-Host: 84.53.88.202 (84.53.88.202) NNTP-Posting-Date: Mon, 04 Jul 2011 11:09:28 +0200 Xref: x330-a1.tempe.blueboxinc.net comp.os.os2.programmer.misc:334 comp.os.os2.programmer.tools:17 >> As an aside: is there an API or function which consistenly returns >> the case of a directory as-is, with or without the drive letter? > A combination of DosQueryPathInfo with DosFind* works for me. > (DosFindNext returns the correct case, so SysFileTree may work > as well for REXX.) Thanks, so a combination may be required indeed. In an earlier example in this (c.o.o.p.t.-) thread I used SysFileTree, which a.o. uses DosFind*, to distinguish between *.S and *.s file extensions, i.e. not the full path name. BTW, I mean required for a good look, i.e. always preserving whatever the user entered explicitly. Too bad trying another possibility also demonstrated a bug when e.g. an é was used as a final character. (MCD "x" is a combination of MD "x" and CD "x", which will also fail individually, with and without quotes). The Caf‚-subdirectory didn't exist before trying this: [D:\Database]mcd Caf‚ [D:\Database\Caf‚]dir The volume label in drive D is TEST. The Volume Serial Number is A9C5:E150. Directory of D:\Database 4-07-11 10:48 0 ---- . 4-07-11 10:48 0 ---- .. 4-07-11 10:50 0 ---- Caf‚ 3 file(s) 0 bytes used --