Article View: borland.public.cppbuilder.nativeapi
Article #1169Re: IShellFolder::GetDisplayNameOf FileName with extension
From: Bruce Salzman
Date: Thu, 18 Oct 2007 20:46
Date: Thu, 18 Oct 2007 20:46
27 lines
1773 bytes
1773 bytes
"Asger Jรธrgensen" <junk@Asger-P.dk> wrote in message news:MPG.2181d8e14a7e5fb989858@newsgroups.borland.com... > Hi there > > How do I get the filename with extension, but > without the path. > > In the helpfile under GetDisplayNameOf there is three > options > > SHGDN_NORMAL > and > SHGDN_INFOLDER > seems to give the same result, the filename with or > without extension acording to what the user have > chosen for the explorer. > > SHGDN_FORPARSING > and this one gives the full path > You can use the fnsplit() function on the full path to get the filename + extension. -- Bruce
Technical Details
Message-ID:
<4717c615$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<MPG.2181d8e14a7e5fb989858@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,837423057db5c2d9 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,UTF8 From: " Bruce Salzman" <bruce@nospam.org> Newsgroups: borland.public.cppbuilder.nativeapi References: <MPG.2181d8e14a7e5fb989858@newsgroups.borland.com> In-Reply-To: <MPG.2181d8e14a7e5fb989858@newsgroups.borland.com> Subject: Re: IShellFolder::GetDisplayNameOf FileName with extension Date: Thu, 18 Oct 2007 15:46:14 -0500 Lines: 28 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6000.16480 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16545 NNTP-Posting-Host: 75.86.154.191 Message-ID: <4717c615$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1192740373 75.86.154.191 (18 Oct 2007 13:46:13 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail