|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Open files in associated editors.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 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 Show quoteHide quote "Prashwee" <prashantha.weerak***@ifs.lk> schreef in bericht news:%231bL3HVAHHA.1196@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 > >
This mail sending code snippet does not work
Examples of VB.net commercial software packages Scope misunderstanding Visual Basic 2003 won't run - get error message Dynamically changing button label from a variable regex.replace and trim set itemheight in listbox Filling TreeView with Recursive Function ? Application.EnableVisualStyles() still required in version 2.0 Initialize DefaultPropertyAttribute for a Object property |
|||||||||||||||||||||||