Computing.Net > Forums > Programming > open file with an associated progra

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

open file with an associated progra

Reply to Message Icon

Name: nader
Date: August 31, 2003 at 23:19:00 Pacific
OS: 98
CPU/Ram: 800
Comment:

I am searching the way to write a program have treeview of files.
And then click on the file names in the treeview then windows open it with an associated program.for example:
Doc file open with word and Pdf open with Acrobat reader and … (Same a windows explorer).
I am using the VB6 for programing
Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: Chi Happens
Date: September 1, 2003 at 21:52:35 Pacific
Reply:

You can use ShellExecute and simply execute the file (if the association is already made it will open), or use ShellExecute to open the target executable and pass the file as the parameter.

Hope this gets you pointed in the right direction,
Chi Happens


0
Reply to Message Icon

Related Posts

See More


programming how and what not writing viruses



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: open file with an associated progra

batch:open file with windowsize&pos www.computing.net/answers/programming/batchopen-file-with-windowsizeamppos/15159.html

prevent saving an HTML file with im www.computing.net/answers/programming/prevent-saving-an-html-file-with-im/9321.html

Passing an Open File in C++ www.computing.net/answers/programming/passing-an-open-file-in-c/17174.html