How to ask system to open a selected file by itself

rubia
12-25-2004, 04:02 AM
Hi All,
I dont know it is right place to post or not,
i have problem ,i want to open a selected file in its system default application,for example ihave a file a.html now i want that on button press

1---it is opened by iexplorer or netescape whatever the system default is.no need to tell about the exe programe and its path to open as by shell commands.

becuse my application can select any type of file ,so it is necessary that my application ask system to open those files ,but how???
plz reply as soon as possible i need it urgent,and any wrriten piece of code will be preferable,
Best Regards to all

alt_255
12-25-2004, 04:10 AM
ShellExecute

eXeption
12-25-2004, 04:11 AM
Use the ShellExecute() or ShellExecuteEx functions.
It'll open any type of document/EXEs with the associated Application.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum