Valhalla Legends Archive

Programming => General Programming => Topic started by: Crypticflare on February 09, 2003, 09:05 AM

Title: Visual Basic question
Post by: Crypticflare on February 09, 2003, 09:05 AM
I ran across this question the other day, this user asked

I know this is a simple question, but I can't find anyone who knows it, how do you run an external EXE from source code? For instance my app is VBApp.exe and I want to run OtherApp.exe, in VBApp.exe I put a button, if I click that button I want OtherApp.exe to run, how do I go about doing that?

Since I lack the knowlege or probably know how to do it, but not know how to put it on code, could one of the VB gurus help :p

Title: Re: Visual Basic question
Post by: Eibro on February 09, 2003, 09:13 AM
I'm guessing you do it the same way you do it in C/C++ with Win32... Either CreateProcess() or the easier (yet depricated) WinExec()
Look them up on MSDN
Title: Re: Visual Basic question
Post by: iago on February 09, 2003, 09:47 AM
shell(ProgramName as String) I believe
Title: Re: Visual Basic question
Post by: Mesiah / haiseM on February 09, 2003, 01:28 PM
shell(ProgramPathAndName as String)
Title: Re: Visual Basic question
Post by: Banana fanna fo fanna on February 09, 2003, 02:11 PM
dont forget vbnormalfocus
Title: Re: Visual Basic question
Post by: Mesiah / haiseM on February 09, 2003, 02:41 PM
well initially thats up to him, maybe he wants to run his chatbot and open up bingate and minimize it or somethin..