Article View: borland.public.delphi.commandlinetools
Article #279Re: Reading %1 argument in one piece
From: Rob Kennedy
Date: Tue, 08 Feb 2005 16:07
Date: Tue, 08 Feb 2005 16:07
21 lines
1639 bytes
1639 bytes
Frank Van Overwalle wrote: > 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 It should be quoted. I'm sure you can configure InstallShield to make the proper file association. "fit.exe" "%1" Delphi interprets the quotation marks and groups the quoted portions into one argument. You're also free to process the command line yourself. Look at the CmdLine global variable, or get it straight from the OS with the GetCommandLine API function. -- Rob
Technical Details
Message-ID:
<4208e3d1$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<420898a7$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: ff8f1,11e0248d60f5ca95 X-Google-Attributes: gidff8f1,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 08 Feb 2005 10:07:47 -0600 From: Rob Kennedy <.> Organization: none User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.delphi.commandlinetools Subject: Re: Reading %1 argument in one piece References: <420898a7$1@newsgroups.borland.com> In-Reply-To: <420898a7$1@newsgroups.borland.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 69.210.106.123 Message-ID: <4208e3d1$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1107878865 69.210.106.123 (8 Feb 2005 08:07:45 -0800) Lines: 21 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail