• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 189
  • Last Modified:

Open With... API

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.
  • 4
1 Solution
Richie_SimonettiIT OperationsCommented:
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}'".


Richie_SimonettiIT OperationsCommented:
Sorry you could use last code with Shell function or with Shellexecute API.
Hope it helps
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Like Richie says; use ShellExecute API.
alaplumeAuthor Commented:
It did the job!
Richie_SimonettiIT OperationsCommented:
Then, why you punished me with "B" grade?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now