Open external application with "Open With"

graced

Member
Joined
Aug 6, 2008
Messages
18
Programming Experience
1-3
Hello, I would like to know how to run an external application in VB .net without knowing its process name (e.g winword.exe).

The user will just pick the file to be opened, for example, the file to be opened is C:\somefile.swf, then the popup window in Windows will appear (the "Open with.." window). does anybody know how to do this?

openwith.jpg

http://img.photobucket.com/albums/v622/greyzz/openwith.jpg
 
Or simply:
VB.NET:
System.Diagnostics.Process.Start("File Here")
and let windows open the file with the default program, or the OpenWith dialog if no default association exists
 
Or simply:
VB.NET:
System.Diagnostics.Process.Start("File Here")
and let windows open the file with the default program, or the OpenWith dialog if no default association exists

I suggested the other way becuase when I use this way I get a Win32Exception "No application is associated with the specified file for this operation"

Not sure why it works for you, but if it does yours is better. :)
 
Back
Top