What's Here?
- Members: 300,308
- Replies: 825,513
- Topics: 137,361
- Snippets: 4,417
- Tutorials: 1,147
- Total Online: 2,103
- Members: 127
- Guests: 1,976
|
This will allow you to start an executable application from within VB.NET. You can also use to open a file with its associated executable (ie. open a .doc file with MS Word)
|
Submitted By: Jayman
|
|
Rating:
 
|
|
Views: 29,705 |
Language: VB.NET
|
|
Last Modified: August 9, 2006 |
Instructions: Make you sure you import the following for this to work:
Imports System.Diagnostics.Process
|
Snippet
'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.doc with MS Word
Process.Start("c:\myTestFolder\myfile.doc")
'will run an executable file called myfile.exe
Process.Start("c:\myTestFolder\myfile.exe")
'will open a blank notepad
Process.Start("Notepad.exe")
'I'm sure you get the idea
Copy & Paste
|
|
|
|