I want to run external program to work with a file, which is asociated with that file extension.
Example : if file is *.jpg, then I want to run image viewer.
I want to do it under Windows.

use ShellExecute() see here and here

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.