Solved

Open With... API

Posted on 2002-03-08
6
178 Views
Last Modified: 2010-05-02
I'm looking for code (API or OCX) that will enable me to use microsoft's Open With... dialog - the one used to get a user to identify what exe to use when openning a file of and unknown type.
0
Comment
Question by:alaplume
  • 4
6 Comments
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6851181
0
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 200 total points
ID: 6851186
Open With  
module: SHELL32.DLL  
command: rundll32.exe shell32.dll,OpenAs_RunDLL {drive:\path\filename}
result: displays the application/file "Open With" dialog
result: passing the full file drive, path and name as a parameter will cause the dialog to display the line "Click the program you want to use to open the file '{filename}'".
 

 

0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6851189
Sorry you could use last code with Shell function or with Shellexecute API.
Hope it helps
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 4

Expert Comment

by:trkcorp
ID: 6851244
Like Richie says; use ShellExecute API.
0
 
LVL 1

Author Comment

by:alaplume
ID: 6866276
It did the job!
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6867653
Then, why you punished me with "B" grade?
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

707 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

12 Experts available now in Live!

Get 1:1 Help Now