By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,219 Members | 2,140 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,219 IT Pros & Developers. It's quick & easy.

Open files in associated editors.

P: n/a
Hi All

I have a simple Application and I need to open my documents files in
assoicated applications given the path name and the file name and the
extension.
For example I got all my files stoted in C:\Documents and under that I got
following files.

mydoc.doc
mypdf.pdf
mytxt.txt
myautocad.dwg
and so on..

If I provide the file path in my program it should open up the file with the
relevent assciated application. for example mydoc.doc should open up with
MSWord and myautocad.dwg should open the autocad 2004 installed in my
computer.
How do i do this in my vb.net 2005 framewrok 2.0

Code example would be extreamly helpfull.

Thanks in Advacne
Prash
Nov 6 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Prashwee,

Process start
\\\Word
Dim p As New Process
p.WindowStyle = ProcessWindowStyle.Hidden
p.FileName = "C:\filename.doc"
p.UseShellExecute = True
p.Start
///

I hope this helps,

Cor

"Prashwee" <pr******************@ifs.lkschreef in bericht
news:%2****************@TK2MSFTNGP02.phx.gbl...
Hi All

I have a simple Application and I need to open my documents files in
assoicated applications given the path name and the file name and the
extension.
For example I got all my files stoted in C:\Documents and under that I got
following files.

mydoc.doc
mypdf.pdf
mytxt.txt
myautocad.dwg
and so on..

If I provide the file path in my program it should open up the file with
the relevent assciated application. for example mydoc.doc should open up
with MSWord and myautocad.dwg should open the autocad 2004 installed in my
computer.
How do i do this in my vb.net 2005 framewrok 2.0

Code example would be extreamly helpfull.

Thanks in Advacne
Prash


Nov 6 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.