CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2002
    Posts
    16

    How to call an .exe file from VB?

    I got an application (.exe) I want to fire up from my program. I would like to just click a command button and call the .exe.

  2. #2
    Join Date
    Aug 2001
    Location
    Poland
    Posts
    6
    Use SHELL function.
    Description - in VB help.
    Example :
    ' Specifying 1 as the second argument opens the application in
    ' normal size and gives it the focus.
    Dim RetVal
    RetVal = Shell("C:\WINDOWS\CALC.EXE", 1) ' Run Calculator.

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

Featured