Link to home
Start Free TrialLog in
Avatar of mrwatts
mrwatts

asked on

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?
ASKER CERTIFIED SOLUTION
Avatar of DeAn
DeAn

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mrwatts
mrwatts

ASKER

I tried it like this Shell("app. path" & "\setup.exe", vbNormalFocus) and I get a File Not Found error.
remove the quotes from App.Path
this should do.

Shell App.Path & "\setup.exe", vbNormalFocus
Avatar of mrwatts

ASKER

Thank You Very Much DeAn! Works great!
your welcome ;)