Results 1 to 5 of 5

Thread: Running a program within

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    7
    Heyas.. another question

    Let's just say I wanted to click a command button.. & it would run c:\windows\notepad.exe

    how would I do that?

    Thanks

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    Easy.
    Code:
    Shell "c:\windows\notepad.exe"
    Oetje
    [email protected]
    93606776
    Visual Basic 6, Windows 2000

    Never pet a burning dog

  3. #3
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    Note:
    If the file is in c:\windows\ (and some other dirs to), then you can also do:
    Code:
    Shell "notepad.exe"
    Oetje
    [email protected]
    93606776
    Visual Basic 6, Windows 2000

    Never pet a burning dog

  4. #4
    Guest
    Better, yet, you can omit the .EXE and just use "Notepad".

    Also, you both are forgetting the last argument. If you omit it, then the App will minimized instead of normal.
    Code:
    Shell "Notepad", 1

  5. #5
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    Originally posted by Megatron
    Also, you both...
    We're both the same.
    Oetje
    [email protected]
    93606776
    Visual Basic 6, Windows 2000

    Never pet a burning dog

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