Article View: borland.public.cppbuilder.nativeapi
Article #9199CmdLine ParamStr and Folder Shell command parameters
From: Ian Robertson
Date: Sat, 24 Jul 2004 09:20
Date: Sat, 24 Jul 2004 09:20
15 lines
1470 bytes
1470 bytes
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.
Technical Details
Message-ID:
<410229eb$1@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-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,69b2a3e1b54fedf3,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Ian Robertson" <ian.robertson@zoom.co.uk> Sender: "Ian Robertson" <ian.robertson@zoom.co.uk> Reply-To: "Ian Robertson" <ian.robertson@zoom.co.uk> Subject: CmdLine ParamStr and Folder Shell command parameters Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 62.252.192.11 X-Forwarded-For: 82.2.134.233 NNTP-Posting-Host: 207.105.83.66 Message-ID: <410229eb$1@newsgroups.borland.com> Date: 24 Jul 2004 02:20:43 -0700 X-Trace: newsgroups.borland.com 1090660843 207.105.83.66 (24 Jul 2004 02:20:43 -0700) Lines: 16 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