Results 1 to 7 of 7

Thread: Calling other .exe programms from Vb

  1. #1

    Thread Starter
    Banned
    Join Date
    May 2003
    Posts
    37

    Calling other .exe programms from Vb

    Visual Basic 6
    How to call and open other .exe programms from a visual basic program. The .exe program should be visible and operatable after opening

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Use the Shell() statement
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3
    Hyperactive Member
    Join Date
    Nov 2002
    Location
    india
    Posts
    418
    hi,

    use shell("notepad.exe")

  4. #4
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    Also add after the program path the vbNormalFocus.

    For example :
    VB Code:
    1. Shell "notepad", vbNormalFocus


    Has someone helped you? Then you can Rate their helpful post.

  5. #5
    Hyperactive Member Foxer's Avatar
    Join Date
    Oct 2001
    Location
    Australia
    Posts
    278
    I can shellexecute out and run a command okay but how do I halt execution of my code until the exe has finished running?

    The shell process might take up to 30 seconds. I need to know when that process copmletes so I can continue with the results of that process.

    I'm calling the external process from a MS Access 97 module. The external process is a VB.Net console program written in-house. I can change the console program if need be.

    Too hard?
    Last edited by Foxer; Sep 1st, 2003 at 06:11 PM.
    Rate my response if I helped

    Go Hard Or Go Home


  6. #6
    Not NoteMe SLH's Avatar
    Join Date
    Mar 2002
    Location
    192.168.0.1 Preferred Animal: Penguin Reason for errors: Line#38
    Posts
    3,051
    I think this thread should help.
    Quotes:
    "I am getting better then you guys.." NoteMe, on his leet english skills.
    "And I am going to meat her again later on tonight." NoteMe
    "I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
    "my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
    Have I helped you? Please Rate my posts.


  7. #7
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429
    Also, these examples may be useful.

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