Valhalla Legends Forums Archive | General Programming | Visual Basic question

AuthorMessageTime
Crypticflare
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

February 9, 2003, 3:05 PM
Eibro
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
February 9, 2003, 3:13 PM
iago
shell(ProgramName as String) I believe
February 9, 2003, 3:47 PM
MesiaH
shell(ProgramPathAndName as String)
February 9, 2003, 7:28 PM
St0rm.iD
dont forget vbnormalfocus
February 9, 2003, 8:11 PM
MesiaH
well initially thats up to him, maybe he wants to run his chatbot and open up bingate and minimize it or somethin..
February 9, 2003, 8:41 PM

Search