473,385 Members | 2,162 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Executing applications (exe files) from vb.net 2005, .net framework 2.0.

88 64KB
Hi everyone,
This thing is a bit foggy to me, can anyone help?
I hav created a windows explorer like application using VB.Net 2005. It has a listview control by which u can browse through all the local disk drives of ur machine as well as all the folders, subfolders and files in them by double clicking the folders. Now while browsing the files under a folder, if i get an exe file, i wanna execute that file by double clicking on it and start the application from right there just as we do in windows explorer. What's the procedure to that?

Regards.
Feb 11 '08 #1

✓ answered by kadghar

Hi everyone,
This thing is a bit foggy to me, can anyone help?
I hav created a windows explorer like application using VB.Net 2005. It has a listview control by which u can browse through all the local disk drives of ur machine as well as all the folders, subfolders and files in them by double clicking the folders. Now while browsing the files under a folder, if i get an exe file, i wanna execute that file by double clicking on it and start the application from right there just as we do in windows explorer. What's the procedure to that?

Regards.
You can try with ShellExecute,

But if i remember well, in .net you can define a Process and use its Start method:

Expand|Select|Wrap|Line Numbers
  1. dim Pro1 as process = new process
  2. pro1.start("c:\app1.exe")
HTH

1 992
kadghar
1,295 Expert 1GB
Hi everyone,
This thing is a bit foggy to me, can anyone help?
I hav created a windows explorer like application using VB.Net 2005. It has a listview control by which u can browse through all the local disk drives of ur machine as well as all the folders, subfolders and files in them by double clicking the folders. Now while browsing the files under a folder, if i get an exe file, i wanna execute that file by double clicking on it and start the application from right there just as we do in windows explorer. What's the procedure to that?

Regards.
You can try with ShellExecute,

But if i remember well, in .net you can define a Process and use its Start method:

Expand|Select|Wrap|Line Numbers
  1. dim Pro1 as process = new process
  2. pro1.start("c:\app1.exe")
HTH
Feb 11 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

15
by: (Pete Cresswell) | last post by:
I've got a .BAT file that I use for executing various MS Access apps that I wrote way back in the days of 2.0. It's evolved over time, but it still contains a number of possible paths to...
9
by: Mads W. | last post by:
I want to read an ini file which is located in the same dir as my .exe file. But how can I do that without having to have the excact same dir for all my program installations. Let me try to...
5
by: Rich | last post by:
Hello, So I develop a vb.net exe on my (win2k) workstation. I have to deploy it to another workstation (actually several - all win2k). Each receiving workstation will have .Net Framework 1.1...
0
by: Shaun | last post by:
I have read several articles that tell me that a COM+ application can expose its components as web services, but can't get things to work for me. I have the following class (slightly modified...
3
by: Michael Tissington | last post by:
I have a web site with some EXE files for people to download. However, when ever I try to download one of these filese I get an error Can't find Server or DNS error ... And yes the url is...
0
by: google | last post by:
Hi everyone, >From my WinForms app I am executing an external process. It turns out that I have replaced the EXE of the external process with a newer version and my WinForms app is still...
5
by: Arpan | last post by:
A Discovery file named "Calculator.disco" exists in "C:\Inetpub\wwwroot\ASPX\WEBSERVICES" folder. Now when I enter the following command in the command prompt (at the...
0
by: fischermx | last post by:
Environment: Microsoft Visual Studio 2005 Version 8.0.50727.762 (SP.050727-7600) Microsoft .NET Framework Version 2.0.50727 Microsoft Visual Studio 2005 Professional Edition - ENU Service Pack...
1
by: Manish | last post by:
Hi friends, Iam new to this group. I have problem with executing the output(exe) file in an another system. I have created and compiled in a VS 2005 tool. when i run the exe file in a new system....
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.