Solved

How to open an exe file in vb.net forms

Posted on 2004-09-18
2
195 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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.
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 …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

730 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