|
-
Aug 5th, 2000, 01:35 PM
#1
Thread Starter
Lively Member
How can you make a command button open another .exe? For example, is I wanted a button that when clicked would open the windows calculator. Thanks in advance!
John
-
Aug 5th, 2000, 01:37 PM
#2
Code:
Private Sub Command1_Click()
Shell "Calc", vbNormalFocus
End Sub
-
Aug 5th, 2000, 01:40 PM
#3
Frenzied Member
in windows NT/2000 use this line
Code:
Shell "C:\WINNT\System32\calc.exe"
If you're not using windows NT/2K then you'll have to use the Command Line. Using the Shell command is exuivilent to selecting Run from the start menu and typing in the String after the Shell Keyword
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
|