|
-
Mar 21st, 2004, 10:02 PM
#1
Thread Starter
Addicted Member
Simple ShellExecute Problem (really easy) [RESOLVED]
Hi,
I've been having trouble, and, being new to VB, I can't figure out how to simply load a new exe after the first exe is loaded. How do I do this? I've gathered that you have to use ShellExecute, but my searches on these boards and on google have only turned up variations of the code that don't seem to work too well.
For example, I run "A.exe". A.exe, when I click a button, will open "B.exe". This should be really easy for you guys...
Thanks.
Last edited by rehto; Mar 21st, 2004 at 10:19 PM.
-
Mar 21st, 2004, 10:07 PM
#2
Can you use (non API) Shell()?
Like: Shell(b.exe, vbNormalFocus)
Bruce.
-
Mar 21st, 2004, 10:08 PM
#3
Are you asking how to shell external program from your own application or what ??? Unclear ...
In any case, here is a quick sample:
VB Code:
Private Sub Command1_Click()
Shell "calc.exe", vbNormalFocus
End Sub
edit: Bruce, sorry for cross posting.
-
Mar 21st, 2004, 10:14 PM
#4
I screwed up anyway by including the brackets (used if using Call)
-
Mar 21st, 2004, 10:18 PM
#5
Thread Starter
Addicted Member
Thanks all,
RhinoBull's code was what I needed.
Now wasn't that easy? Sorry for wasting your time.
-
Mar 21st, 2004, 10:19 PM
#6
-
Mar 21st, 2004, 10:22 PM
#7
Originally posted by rehto
... Now wasn't that easy? Sorry for wasting your time.
It's easy enough when you know it ... Don't hesitate to ask as many questions as you need regardless.
Cheers
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|