• Welcome to Valhalla Legends Archive.
 

Visual Basic question

Started by Crypticflare, February 09, 2003, 09:05 AM

Previous topic - Next topic

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


Eibro

#1
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
Eibro of Yeti Lovers.

iago

#2
shell(ProgramName as String) I believe
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Mesiah / haiseM

#3
shell(ProgramPathAndName as String)
]HighBrow Innovations
Coming soon...

AIM Online Status: 

Banana fanna fo fanna

#4
dont forget vbnormalfocus

Mesiah / haiseM

#5
well initially thats up to him, maybe he wants to run his chatbot and open up bingate and minimize it or somethin..
]HighBrow Innovations
Coming soon...

AIM Online Status: