What's Here?
- Members: 148,690
- Replies: 504,807
- Topics: 79,489
- Snippets: 2,661
- Tutorials: 705
- Total Online: 1,657
- Members: 84
- Guests: 1,573
|
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: 15,959 |
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
|
|
|
Be Social
Reference Sheets
Bye Bye Ads
Monthly Drawing
Top Contributors
Top 10 Kudos This Month
|