Default Application Instead of specifying

SigIKTTN
12-31-2003, 03:33 AM
I would like to launch a file in another application without specifying what application to launch, or specifying the default windows application. I realize I can use Shell to launch a program and specify a file to open as well
IE: shell("c:\program fles\program.exe filename")
but not everyone has the same setup and not everyone has the same applications installed for a particular activity.
is there a way to check Windows Default Programs and then use them?
Thanx

and Meow said the SigIKTTN

reboot
12-31-2003, 05:58 AM
A few examplesDim myProc As Process = Process.Start("c:\readme.txt") 'a text file via the default text editor

Dim myProc As Process = Process.Start("http://www.visualbasicforum.com") 'a url via the default browser

Dim startInfo As New ProcessStartInfo 'use a startinfo class to specify options for Process.Start

startInfo.FileName = "c:\readme.txt"
startInfo.Verb = "Open"
startInfo.WindowStyle = ProcessWindowStyle.Normal

Dim myProc As Process = Process.Start(startInfo)

SigIKTTN
12-31-2003, 02:36 PM
Thanx
that was exactly what I needed. and It works great. time to compile..
;) ;) :) :) :)
two winks and three smiles to you.


and meow said the SigIKTTN

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum