size : 364
uploaded_on : Fri May 7 00:00:00 1999
modified_on : Wed Dec 8 14:03:39 1999
title : Open file with associated application
org_filename : openfile.txt
author : Venne Tong
authoremail : ventong@netease.com
description : How to run a file with a Windows application
keywords :
tested : not tested yet
submitted_by : The CKB Crew
submitted_by_email : ckb@netalive.org
uploaded_by : nobody
modified_by : nobody
owner : nobody
lang : plain
file-type : text/plain
category : delphi-filehandling
__END_OF_HEADER__
> I need to load the default ImageEditor from a picture file.
> I would run for exemple MSPaint by clicking on a bmp file.
You can use ShellExecute function .it can be load the correct program with
your file type. like this.
shellexecute(0,'open', 'c:\windows\desktop\your.bmp','','',SW_NORMAL);
if bmp File is associate with MSPAINT, it can be run MSPAINT.