sudagn

Tuesday, September 2, 2008

Run a .EXE from a VB.NET application?

To run a .EXE file from a VB.NET application you need to import the System.Diagnostics namespace. The following sample shows how to run Notepad from a VB.NET application.

Imports System
Imports System.Diagnostics
Dim program As New Process()
program.StartInfo.FileName = "Notepad.exe"
program.StartInfo.Arguments = " "
program.Start()
Posted by suda at 6:01 AM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2010 (1)
    • ►  January (1)
  • ►  2009 (30)
    • ►  November (1)
    • ►  October (4)
    • ►  August (3)
    • ►  July (1)
    • ►  June (7)
    • ►  May (6)
    • ►  April (2)
    • ►  March (1)
    • ►  February (3)
    • ►  January (2)
  • ▼  2008 (75)
    • ►  December (4)
    • ►  November (2)
    • ►  October (2)
    • ▼  September (7)
      • Using Generic lists with crystal reports in .net
      • Export options of crystal reports and passing para...
      • Working with Attachments in Outlook Email using .n...
      • Open word file using vb.net 2,0 in windows applica...
      • Storing and Downloading ms word file in ms access ...
      • Run Executable file in ASP.NET
      • Run a .EXE from a VB.NET application?
    • ►  August (8)
    • ►  July (7)
    • ►  June (12)
    • ►  May (13)
    • ►  April (14)
    • ►  March (6)
  • ►  2007 (1)
    • ►  December (1)

About Me

suda
View my complete profile

Free website - Wix.com
Simple theme. Powered by Blogger.