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