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.

Run an external executable file.
adamlane
Hi,
Try using the Process.Start instead of FileOpen.
http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemdiagnosticsprocessclassstarttopic.asp
Regards,
Vikram