Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 10th, 2007, 07:51 PM
Registered User
 
Join Date: Jun 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default please help, how to load external application

I haven't done software development in a long time and have forgotten all my vb knowledge but I need to make this program that will load another one.

Basically I had a 3rd party program I need to load a specific application, but the application can't be renamed so I need to make a vb app that the 3rd party app will load which well in turn load the app I need.
So 3rdparty -loads-> vbapp -loads-> application

If you someone could suggest simple code on how to do this it would be greatly appreciated.

 
Old June 11th, 2007, 02:57 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Shell is the statement to run an external program. In the VB app, if all you need it to do is run the last app
Code:
    Shell "C:\<whatever the path is>\<the app name & extension>"
    End
    You can add arguments to affect what the window that opens is like: maximized, has focus, etc.
 
Old June 11th, 2007, 03:07 PM
Registered User
 
Join Date: Jun 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If I start a new exe project where do I put this? Form ~ Load? or General?

If the file I'm trying to load will be in the same directory as the exe I'm making can I just say:

Shell "filename.exe"
End

****where filename.exe is the file I'm trying to load up

 
Old June 11th, 2007, 03:47 PM
Registered User
 
Join Date: Jun 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

nevermind I figured it out, it goes in Form1 ~ Load

Thanks for the help!






Similar Threads
Thread Thread Starter Forum Replies Last Post
Flash to load external Programme ells228 Flash (all versions) 1 January 5th, 2007 12:14 AM
Load external script within Page_Load Event kwilliams General .NET 0 October 9th, 2006 10:56 AM
calling an external application forlorn Classic ASP Professional 0 August 19th, 2005 03:26 AM
calling an external application forlorn Classic ASP Basics 0 August 19th, 2005 03:22 AM
Launch external application kikashi VB How-To 0 May 14th, 2005 01:36 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.