Link to home
Start Free TrialLog in
Avatar of NirojanSri
NirojanSri

asked on

How to open an exe file in vb.net forms

Hi,

I want to know how to open an exe file in the windows form.. Basically I want to open an Antivirus exe file (C:\ Program Files\Norton AntiVirus\Navw32.exe) when I click the button function… can I use the OpenFileDialog component? If possible can I get the code please…. and I need it as soon as possible.

Cheers

Roj
ASKER CERTIFIED SOLUTION
Avatar of Rimvis
Rimvis
Flag of Lithuania image

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 J_Mak
J_Mak

This is the solution to your problem, use the following code to open the Antivirus software:

Shell("C:\ Program Files\Norton AntiVirus\Navw32.exe", AppWinStyle.NormalFocus)

That will do it for you. Hope that helps!