Solved

How to open an exe file in vb.net forms

Posted on 2004-09-18
2
191 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

A short article about a problem I had getting the GPS LocationListener working.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
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 …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now