Run an external executable file.

I am a beginner and am using VB 2005 Express.

I want to run an external executable file named "setup.exe." I cannot figure out how to do this.
I tried

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
FileOpen(1, "setup.exe", OpenMode.Output, OpenAccess.Default, OpenShare.Shared)
End Sub

If I use that I get the following exception:

Access to path 'C:\Documents and Settings\Troy Lundin\Desktop\setup.exe' is denied.

I am trying to make a tiny autorun file. I can click a button and the file runs. Something like that.
Thanks in advance.





Answer this question

Run an external executable file.