By Peter Morris
Dim startInfo As System.Diagnostics.ProcessStartInfo
Dim pStart As New System.Diagnostics.Process
startInfo = New System.Diagnostics.ProcessStartInfo("C:\file.exe")
pStart.StartInfo = startInfo
pStart.Start()
pStart.WaitForExit() 'Your code will halt until the exe file has executed.
- Login or register to post comments
Comments
'i hope this is hopeful to you
'first:
Public Class Form1
dim proc as new system.diagnostic.process()
dim x as integer
'assign a button so that you can click and a inputbox will prompt and you can try to type:
notepad,cmd,calc to prove
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
x = inputbox("run exe","run")
proc = process.start(x)
By den nativ 49 weeks 1 day

Delicious
Digg
Google
Yahoo