Tuesday, December 9, 2008

Running an external executable file Using Vb.net

'make a call to your application or file by giving Process.Start
'the full path to your file including name and extension.

'will open a Word document called myfile.xls with MS Excel
Process.Start("c:\myTestFolder\myfile.xls")

'will run an executable file called myfile.exe
Process.Start("c:\myTestFolder\myfile.exe")

'will open a blank notepad
Process.Start("Notepad.exe")

No comments: