Solved

How to open an exe file in vb.net forms

Posted on 2004-09-18
2
193 Views
Last Modified: 2010-04-17
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
0
Comment
Question by:NirojanSri
2 Comments
 
LVL 19

Accepted Solution

by:
Rimvis earned 500 total points
ID: 12091410
What do you mean by "opening"? Do you want to RUN this exe? In that case, use this code:

Process.Start("C:\Program Files\Norton AntiVirus\Navw32.exe")
0
 
LVL 7

Expert Comment

by:J_Mak
ID: 12091455
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!
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

A short article about a problem I had getting the GPS LocationListener working.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

776 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