Article View: borland.public.cppbuilder.nativeapi
Article #17454Re: Function to get parent director?
From: Remy Lebeau (TeamB)
Date: Tue, 25 Mar 2003 03:39
Date: Tue, 25 Mar 2003 03:39
11 lines
1361 bytes
1361 bytes
ExtractFilePath(), as long as the path doesn't have a trailing backslash on it. If it does, then you'll have to strip it off first. Gambit "Jeff Douglass" <.> wrote in message news:3e7fc95d$1@newsgroups.borland.com... > Is there an api or VCL function to return the parent directory > of a given path? For example, given "c:\\dir1\\dir2\\dir3\\dir4" > is there a fucntion that would return "c:\\dir1\\dir2\\dir3"?
Technical Details
Message-ID:
<3e7fcd60$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3e7fc95d$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,6bd0fa2a5062181a X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-03-24 19:37:37 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3e7fc95d$1@newsgroups.borland.com> Subject: Re: Function to get parent director? Date: Mon, 24 Mar 2003 19:39:51 -0800 Lines: 13 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3e7fcd60$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1048563040 207.175.226.26 (24 Mar 2003 19:30:40 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail