🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: CmdLine ParamStr and Folder Shell command parameters

#9208
From: Ian Robertson
Date: Sat, 24 Jul 2004 19:34
46 lines
2681 bytes
the problem has fixed itsself - one reboot seemed to fix it - I dont know
how it fixed it but it did!

I am using %1 and didnt need to change REG_SZ to REG_EXPAND_SZ

I am now getting the path from %1 - I have another problem now that is
driving me mad

the path is in the format "G:\Music\MP3's\MP3 DVD24\McFly\Room On The 3rd
Floor" to correctly use this as a valid path it needs to be

"G:\\Music\\MP3's\\MP3 DVD24\\McFly\\Room On The 3rd Floor"

I am having no luck changing the single \ into double \\

any ideas? this should be this function completed if I can crack this last
bit


"Bob Gonder" <notbg@notmindspring.invalid> wrote in message
news:vd55g0dg823g17eu48b42e00ao1ev1p2fo@4ax.com...
> 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: <4102b9d6@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!tiscali!newsfeed1.ip.tiscali.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> <iqv4g05vsc1oo5mqgcg3bb2o97cu89vsc2@4ax.com> <410294dc$1@newsgroups.borland.com> <vd55g0dg823g17eu48b42e00ao1ev1p2fo@4ax.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: "Ian Robertson" <ian.robertson@zoom.co.uk>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <410229eb$1@newsgroups.borland.com> <iqv4g05vsc1oo5mqgcg3bb2o97cu89vsc2@4ax.com> <410294dc$1@newsgroups.borland.com> <vd55g0dg823g17eu48b42e00ao1ev1p2fo@4ax.com>
Subject: Re: CmdLine ParamStr and Folder Shell command parameters
Date: Sat, 24 Jul 2004 20:34:55 +0100
Lines: 48
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 82.2.134.233
Message-ID: <4102b9d6@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1090697686 82.2.134.233 (24 Jul 2004 12:34:46 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail