🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #9201

Re: CmdLine ParamStr and Folder Shell command parameters

#9201
From: Daniele Borini
Date: Sat, 24 Jul 2004 10:59
17 lines
1706 bytes
Ian Robertson ha scritto:
> My program creates the following registy entries:
> 
> Folder
>   Shell
>     command
> (default) String value = "C:\app.exe" "%1"
> 
> The string pointed to by CmdLine and obtained by ParamStr(1) is "C:\app.exe"
> 
> The idea is a user right clicks a folder in explorer - the shell menu loads - the user clicks my shell entry - and the name of the folder is passed as a parameter from shell to my app as part of the CmdLine string.
> 
> Can anyone help me get the folder name instead of the path of my exe? I thought the %1 is supposed to pass the path of the folder clicked, not my exe.
> 
> Any help is gratefully received.
> 
it should be ParamStr(2)...
Technical Details
Message-ID: <41024118@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <410229eb$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,69b2a3e1b54fedf3
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sat, 24 Jul 2004 12:59:34 +0200
From: Daniele Borini <borini@infinito.it>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it-IT; rv:1.6) Gecko/20040113
X-Accept-Language: it, en, en-us
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: CmdLine ParamStr and Folder Shell command parameters
References: <410229eb$1@newsgroups.borland.com>
In-Reply-To: <410229eb$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 62.94.69.125
Message-ID: <41024118@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1090666776 62.94.69.125 (24 Jul 2004 03:59:36 -0700)
Lines: 17
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail