Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 228
  • Last Modified:

Running programs through visual basic

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
mrwatts
Asked:
mrwatts
  • 4
  • 2
1 Solution
 
DeAnCommented:
Shell App.Path & "\" & "setup.exe"
0
 
mrwattsAuthor Commented:
I tried it like this Shell("app. path" & "\setup.exe", vbNormalFocus) and I get a File Not Found error.
0
 
DeAnCommented:
remove the quotes from App.Path
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
DeAnCommented:
this should do.

Shell App.Path & "\setup.exe", vbNormalFocus
0
 
mrwattsAuthor Commented:
Thank You Very Much DeAn! Works great!
0
 
DeAnCommented:
your welcome ;)
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now