For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > November 2005 > Launch an outside application









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Launch an outside application
JustLearning

2005-11-28, 6:55 pm

Hi,

I want to have VB6 launch an outside application. I don't need to have it
return anything, just launch it.

What would the syntax be, please? My attempts have been along the lines of:

system.execute anotherapp.pl

Doesn't work, though.

Thanks
Jeff Johnson [MVP: VB]

2005-11-28, 6:55 pm


"JustLearning" <JustLearning@discussions.microsoft.com> wrote in message
news:C9F0DCE4-89E7-4320-9C1C-253A2AD48778@microsoft.com...

> I want to have VB6 launch an outside application. I don't need to have it
> return anything, just launch it.
>
> What would the syntax be, please? My attempts have been along the lines
> of:
>
> system.execute anotherapp.pl
>
> Doesn't work, though.


Read about the Shell() function. If it doesn't do what you want (for
example, if you want to launch an HTML file without knowing where the
browser lives) then search this group for the keyword "shellexecute".


Veign

2005-11-28, 6:55 pm

Adding to Jeff's post;

ShellExecute Madness:
http://vbnet.mvps.org/index.html?co...hellexecute.htm

--
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
http://www.veign.com/vrc_main.asp
Veign's Blog
http://www.veign.com/blog
--


"Jeff Johnson [MVP: VB]" <i.get@enough.spam> wrote in message
news:%236h7ejE9FHA.3048@TK2MSFTNGP10.phx.gbl...
>
> "JustLearning" <JustLearning@discussions.microsoft.com> wrote in message
> news:C9F0DCE4-89E7-4320-9C1C-253A2AD48778@microsoft.com...
>
>
> Read about the Shell() function. If it doesn't do what you want (for
> example, if you want to launch an HTML file without knowing where the
> browser lives) then search this group for the keyword "shellexecute".
>



JustLearning

2005-11-28, 6:56 pm

Thanks to both of you. I will educate myself about the Shell function. Now,
I have a direction to look for answers.

Appreciate it.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com