🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: CmdLine ParamStr and Folder Shell command parameters

#9207
From: Bob Gonder
Date: Sat, 24 Jul 2004 17:09
22 lines
1871 bytes
Ian Robertson wrote:

>
>so the CommandLine string is getting %1 = G:\Project\ADO Database\MP3
>Catalogue v1.0 from shell.
>
>This happens everytime - no matter which folder I right click %1 always
>equals "G:\Project\ADO Database\MP3 Catalogue v1.0".
>This is the folder of the exe file, not the folder I selected. How do I get
>the right folder instead of the folder my app sits in? For instance if I
>right-click a folder called "Elvis", how do I get "Elvis" into my
>CommandLine string?

Did you try the %I (upper i) and %L  parameters?
And use REG_EXPAND_SZ instead of REG_SZ?

I don't know what those do, but the big boys use them....
Add them all to your command, and display however many parameters as
come in.
For instance, PSP uses
"C:\Program Files\Jasc Software Inc\Paint Shop Pro 7\\psp.exe"
"/Browse" "%L"
Technical Details
Message-ID: <vd55g0dg823g17eu48b42e00ao1ev1p2fo@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <410229eb$1@newsgroups.borland.com> <iqv4g05vsc1oo5mqgcg3bb2o97cu89vsc2@4ax.com> <410294dc$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
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: CmdLine ParamStr and Folder Shell command parameters
Date: Sat, 24 Jul 2004 10:09:45 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <vd55g0dg823g17eu48b42e00ao1ev1p2fo@4ax.com>
References: <410229eb$1@newsgroups.borland.com> <iqv4g05vsc1oo5mqgcg3bb2o97cu89vsc2@4ax.com> <410294dc$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.34.96.208
X-Trace: newsgroups.borland.com 1090688983 69.34.96.208 (24 Jul 2004 10:09:43 -0700)
Lines: 24
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail