Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you execute and external program?

Status
Not open for further replies.

gadget3302

Programmer
Apr 24, 2003
79
US
I want to create a cd menu using Visual basic. I want to make a button that when I click it it will run setup\setup.exe can some one please help me with a short example or short code Im complety lost. Oh Im usig vb 6.0
 
Hi Gadget,

Look at the Shell function... or the ShellExecute API..
 
What is the shell function? Can you give me an example?
 
its all there in MSDN!!!

search for "Shell Function"

Dim RetVal
RetVal = Shell("C:\WINDOWS\CALC.EXE", 1) ' Run Calculator.


If somethings hard to do, its not worth doing - Homer Simpson
------------------------------------------------------------------------
A General Guide To Excel in VB FAQ222-3383
The Great Date Debate Thread222-368305
File Formats Galore @ or
 
Okay here is another question, How can I click a button and have it move files, for example what I want the button todo is to move mp3 from a cd to a directory on my computer. Cam someone help me?
 
look up the Name function (although im not sure if that will work from a CD)

or read up on FSO.movefile

good luck!

If somethings hard to do, its not worth doing - Homer Simpson
------------------------------------------------------------------------
A General Guide To Excel in VB FAQ222-3383
The Great Date Debate Thread222-368305
File Formats Galore @ or
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top