I have an filetype associated with my application, so the user can dblclick
on the file. The application read the filename with ParamStr[1]. But this
don't work with files in maps with a whitespace in it, like '\Program
Files'. ParamStr[1] is the text before the (first) whitespace. How can I fix
this?
Bert Prins
"C:\Program Files\And\So\On"
Martin
>
>
Did you set up the File Association yourself ?
The registry entry under your App type should look like:
c:path\apppathh\app.exe "%1"
The double quotes ( Chr(34) ) are then put round the name of the file
that is sent in the command line
Have a look in the registry under
HKEY_CLASSES_ROOT\WinZip\shell\open\command
You can also get at it from: Control Panel/View/Options/File Types
Also you can get the entire command line directly instead of using the
ParamStr() function
procedure TForm1.Button1Click(Sender: TObject);
Var
S :String;
Begin
S := String( GetCommandLine );
ShowMessage( S );
End;
Bert Prins wrote:
--
To See what real programmers do in their spare time visit
http://jamie12.home.mindspring.com
home of PC bit software ..
Please send comments about my work .