🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #14060

Re: SHGetSpecialFolderLocation!

#14060
From: Bob Gonder
Date: Mon, 25 Aug 2003 07:32
27 lines
1848 bytes
Remy Lebeau (TeamB) wrote:

>"Safari" <Safari@alloymail.com> wrote in message
>news:3F48E683.1000408@alloymail.com...
>
>> if (FindFirst(Path + "*.~*;*.tmp;*.temp;*.wri;*.doc", faAnyFile, Search)
>
>You cannot use multiple masks like that.  You can only use a single mask, in
>which case you will have to use "*.*" as the mask instead and then test each
>file that is found with the individual file extensions one at a time. 

Or, do it multiple times, once for each type:

>> if (FindFirst(Path + "*.~*", faAnyFile, Search)
  ......
     FindNext()
     FindClose();

>> if (FindFirst(Path + "*.tmp", faAnyFile, Search)
  ......
     FindNext()
     FindClose();

>> if (FindFirst(Path + "*.temp", faAnyFile, Search)
  ......
     FindNext()
     FindClose();
Technical Details
Message-ID: <pjejkv0dnnmbu873ndj3kl4bcijevp62u0@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3F48E683.1000408@alloymail.com> <3f49a10c$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,7ce38efab0f8f813
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-25 00:39:46 PST
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: SHGetSpecialFolderLocation!
Date: Mon, 25 Aug 2003 00:32:34 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <pjejkv0dnnmbu873ndj3kl4bcijevp62u0@4ax.com>
References: <3F48E683.1000408@alloymail.com> <3f49a10c$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.91/32.564
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.31.165.72
X-Trace: newsgroups.borland.com 1061796758 67.31.165.72 (25 Aug 2003 00:32:38 -0700)
Lines: 30
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail