?
Solved

Running programs through visual basic

Posted on 2003-03-29
6
Medium Priority
?
223 Views
Last Modified: 2012-05-04
I am trying to write a program so that when a user clicks on a command button in visual basic it will run my setup.exe program that is contained in the same file that my project is in. Can anyone help me?
0
Comment
Question by:mrwatts
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 3

Accepted Solution

by:
DeAn earned 200 total points
ID: 8231008
Shell App.Path & "\" & "setup.exe"
0
 

Author Comment

by:mrwatts
ID: 8231806
I tried it like this Shell("app. path" & "\setup.exe", vbNormalFocus) and I get a File Not Found error.
0
 
LVL 3

Expert Comment

by:DeAn
ID: 8231828
remove the quotes from App.Path
0
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
LVL 3

Expert Comment

by:DeAn
ID: 8231835
this should do.

Shell App.Path & "\setup.exe", vbNormalFocus
0
 

Author Comment

by:mrwatts
ID: 8231877
Thank You Very Much DeAn! Works great!
0
 
LVL 3

Expert Comment

by:DeAn
ID: 8231902
your welcome ;)
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn different types of Android Layout and some basics of an Android App.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
Simple Linear Regression
Introduction to Processes

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question