Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder1.news.weretis.net!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Andreas Schnellbacher Newsgroups: comp.os.os2.programmer.tools,comp.os.os2.programmer.misc Subject: DosQueryPathInfo with correct case (was: Force gnu assembler to invoke the preprocessor) Date: Mon, 04 Jul 2011 00:44:40 +0200 Organization: eComStation (OS/2 4.52); mail composed and formatted with EPM editor (http://nepmd.netlabs.org) Lines: 29 Message-ID: <97c9mpF42tU1@mid.uni-berlin.de> References: <4dfdcf49$0$7624$9b4e6d93@newsspool1.arcor-online.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de y2l5A8FTtNvAXJbXqLhuywYKGh7gse/D16fgObQKoB+91ZqQA= User-Agent: Mozilla/5.0 (OS/2; Warp 4.5; rv:2.0.1) Gecko/20110611 Firefox/4.0.1 SeaMonkey/2.1 In-Reply-To: Xref: x330-a1.tempe.blueboxinc.net comp.os.os2.programmer.tools:16 comp.os.os2.programmer.misc:333 A.D. Fundum wrote: >> One should be able to detect the case of the S, at least with HPFS >> and JFS. > > 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? > > Directory (full path: "D:\Download\Database\Europe\CAC40) with both > _getcwd and the DosQueryCurrentDir API: > > [D:\download\database\europe\cac40]c:printdir > D:\download\database\europe\cac40 > > But after those steps: > > D: > CD \ > CD Download > > The output (and eCS' $p$g-prompt) then isn't "D:\download" but > "D:\Download"... A combination of DosQueryPathInfo with DosFind* works for me. (DosFindNext returns the correct case, so SysFileTree may work as well for REXX.) -- Andreas Schnellbacher