Article View: borland.public.cppbuilder.nativeapi
Article #16845Re: How to Get the ExeName and Fie Path from a filename
From: Sky
Date: Tue, 22 Apr 2003 05:08
Date: Tue, 22 Apr 2003 05:08
16 lines
1649 bytes
1649 bytes
> > Hi all, I want get the ExeName and file path from a > > string with API, I know ExtractFilePath and > > ExtractFileName in BCB, Is there a API and do that? > > No. The VCL has to parse the filename manually. Hi Remy, thank you, but could you tell me how to parse the filename manually, if there is no command line parameter, GetCommandLine() return the completed filename, but how to parse if there is some command line parameter. for example: C:\temp\test.exe /u /c /l how to extract the path and pure filename in this case. TIA Sky
Technical Details
Message-ID:
<3ea4ce4d@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!out.nntp.be!propagator2-sterling!news-in-sterling.newsfeed.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3ea4a7ff@newsgroups.borland.com> <3ea4b181$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,54d84ada88133a7e X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-04-21 22:12:02 PST Reply-To: "Sky" <akeehuang@163.net> From: "Sky" <akeehuang@163.net> Newsgroups: borland.public.cppbuilder.nativeapi References: <3ea4a7ff@newsgroups.borland.com> <3ea4b181$1@newsgroups.borland.com> Subject: Re: How to Get the ExeName and Fie Path from a filename Date: Tue, 22 Apr 2003 13:08:08 +0800 Lines: 18 Organization: CK 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: 218.104.133.50 Message-ID: <3ea4ce4d@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1050988109 218.104.133.50 (21 Apr 2003 22:08:29 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!out.nntp.be!propagator2-sterling!news-in-sterling.newsfeed.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail