Hi Roy
If you just want to launch an exe, you can use "Shell" like:
Private Sub Command1_Click()
Shell "E:\Music\DanceRobot.exe", vbNormalFocus
End Sub
Your VB-program continues without waiting for the exe to terminate. See
further details in Help.
You might want to add an error handler so your program doesn't crash if the
exe-file cannot be found.
Private Sub Command1_Click()
On Error GoTo eh
Shell "E:\Musik\DanceRobot.exe", vbNormalFocus
Exit Sub
eh:
MsgBox "'E:\Musik\DanceRobot.exe' could not be launched", vbExclamation
End Sub
So now you can both launch exe's and new year fireworks
Carsten
-= Roy =- skriver:
> Hi, I just started using visual basic (i'm now studying some books) but I
> got a question: Is it possible to link a button (I already know how to
> create forms) to a certain file??
> and that if I click the buttons to start the file???
>
> Thanks!!
>
> -= Roy =-
> (P.S does anybody of you know a good online book to learn visual basic??)