open file...

Posted on 2000-03-25
Last Modified: 2010-04-04
Is there a windows api that I can call from delphi that has the same effect as right clicking an icon and selecting "open"
By doing this I want to open a .vcf file without needing to know what the current application associated with it is.

Any sample code or directions to web site most appreciated.

Question by:malcx
  • 2
LVL 17

Accepted Solution

inthe earned 100 total points
ID: 2657199
sure you can use shellexecute() api from shellapi unit.

uses shellapi;


Regards Barry
LVL 17

Expert Comment

ID: 2657201


also for executable files you can just use

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
calling procedure inside activexForm from secondform 1 231
Virtuailstring tree compare node issue 14 104
Delphi XE10 Round Image 2 76
Delphi...Split view - idea? 1 41
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

914 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now