Results 1 to 3 of 3

Thread: This is probably a dumb question, but....

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2000
    Posts
    67

    Talking

    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

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177
    Code:
    Private Sub Command1_Click()
        Shell "Calc", vbNormalFocus
    End Sub

  3. #3
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    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
  •  



Click Here to Expand Forum to Full Width