Article View: borland.public.delphi.commandlinetools
Article #277Reading %1 argument in one piece
From: Frank Van Overwalle
Date: Tue, 08 Feb 2005 10:47
Date: Tue, 08 Feb 2005 10:47
16 lines
1578 bytes
1578 bytes
Hi, Installfield allows you to read the last clicked file, after setting file extension argument %1, eg fit.exe %1 However, installshield sets %1 after the ..." so that it becomes "...fit.exe" %1 This is something Delphi does not like, because it then reads till the next blank. Hence, to avoid this, you have to read about 20 arguments and paste them together like ParamStr(1) + ' ' + ParamStr(2) + ' ' + etc.. . to get the full path and name of the file. If someone knows a better way, please tell me. Frank Van Overwalle
Technical Details
Message-ID:
<420898a7$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!solnet.ch!solnet.ch!newspeer1.nwr.nac.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: ff8f1,11e0248d60f5ca95,start X-Google-Attributes: gidff8f1,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Frank Van Overwalle" <Frank.VanOverwalle@vub.ac.be> From: "Frank Van Overwalle" <Frank.VanOverwalle@vub.ac.be> Newsgroups: borland.public.delphi.commandlinetools Subject: Reading %1 argument in one piece Date: Tue, 8 Feb 2005 11:47:03 +0100 Lines: 18 Organization: Vrije Universiteit Brussel X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 NNTP-Posting-Host: 134.184.35.54 Message-ID: <420898a7$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1107859623 134.184.35.54 (8 Feb 2005 02:47:03 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!solnet.ch!solnet.ch!newspeer1.nwr.nac.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail