?
Solved

Associating a file extension to my application

Posted on 2005-04-11
2
Medium Priority
?
193 Views
Last Modified: 2010-04-05
Hi All,

I am working in a text editor application. I want my exe to be able to handle set of file extensions. for example: *.txt and *.pas files.

What I wanted to do is that if someone double-clicked any file with the extension of *.txt from windows explorer, then my exe will run and open that file.

I can associate the *.txt extension to be linked with my exe throu' windows explorer. But I am unable to get that file name as soon as my exe fires.

Regards,
Hamid
0
Comment
Question by:HamidHossain
2 Comments
 
LVL 6

Accepted Solution

by:
pritaeas earned 750 total points
ID: 13753171
the filename is passed through the command-line. you can access it throught the Params() function.
0
 

Author Comment

by:HamidHossain
ID: 13753265
This did the job

ShowMessage(ParamStr(1));

Thanks pritaeas

Hamid
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Loops Section Overview
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question