Groups | Search | Server Info | Login | Register


Groups > comp.os.os2.programmer.tools > #17

Re: DosQueryPathInfo with correct case (was: Force gnu assembler to invoke the preprocessor)

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" <what.ever@neverm.ind>
Message-ID <o8uYFJ3iqTdG-pn2-l1zCrydyidcP@localhost> (permalink)
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> <o8uYFJ3iqTdG-pn2-lddw7WF8YUTz@localhost> <o8uYFJ3iqTdG-pn2-dKTjwP0UB8sB@localhost> <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

Cross-posted to 2 groups.

Show key headers only | View raw


 >> 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 &eacute; 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          <DIR>      0 ----  .
 4-07-11 10:48          <DIR>      0 ----  ..
 4-07-11 10:50          <DIR>      0 ----  Caf‚
        3 file(s)           0 bytes used
 

--

Back to comp.os.os2.programmer.tools | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Force gnu assembler to invoke the preprocessor Marcel Müller <news.5.maazl@spamgourmet.org> - 2011-06-19 12:28 +0200
  Re: Force gnu assembler to invoke the preprocessor "A.D. Fundum" <what.ever@neverm.ind> - 2011-06-19 15:42 +0200
    Re: Force gnu assembler to invoke the preprocessor "A.D. Fundum" <what.ever@neverm.ind> - 2011-07-03 16:46 +0200
      DosQueryPathInfo with correct case (was: Force gnu assembler to invoke the preprocessor) Andreas Schnellbacher <aschn@despammed.com> - 2011-07-04 00:44 +0200
        Re: DosQueryPathInfo with correct case (was: Force gnu assembler to invoke the preprocessor) "A.D. Fundum" <what.ever@neverm.ind> - 2011-07-04 11:09 +0200
          Re: DosQueryPathInfo with correct case (was: Force gnu assembler to invoke the preprocessor) "A.D. Fundum" <what.ever@neverm.ind> - 2011-07-21 22:54 +0200
            Re: DosQueryPathInfo with correct case (was: Force gnu assembler to invoke the preprocessor) "A.D. Fundum" <what.ever@neverm.ind> - 2011-07-24 12:23 +0200
            Re: DosQueryPathInfo with correct case (was: Force gnu assembler to invoke the preprocessor) "A.D. Fundum" <what.ever@neverm.ind> - 2011-07-24 12:32 +0200
  Re: Force gnu assembler to invoke the preprocessor Dave Yeo <dave.r.yeo@gmail.com> - 2011-06-19 11:24 -0700

csiph-web