473,325 Members | 2,872 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,325 software developers and data experts.

Execute Another Application

Hi,

I am trying to execute another application from my VB.Net app.
Using the Windows API I would use a WinExec call, but I don't seem to be
able to find an equivalent function in VB.Net

Can anyone help Me?
I've been searching for this for ages without luck so far.

Thankyou
Paul Cheetham
Nov 21 '05 #1
2 3415

This is the .Net equivalant .....
Imports System.Diagnostics

Public Module modmain

Sub Main()

Dim NewProcess as Process = new Process

NewProcess.Start("C:\MyApplication.exe")

End Sub

End Module
regards

Michel Posseth [MCP]

"Paul Cheetham" <PA******@dsl.pipex.com> wrote in message
news:eV**************@TK2MSFTNGP09.phx.gbl...
Hi,

I am trying to execute another application from my VB.Net app.
Using the Windows API I would use a WinExec call, but I don't seem to be
able to find an equivalent function in VB.Net

Can anyone help Me?
I've been searching for this for ages without luck so far.

Thankyou
Paul Cheetham

Nov 21 '05 #2

Thanks Michel,

That's just what I needed.
Paul

m.posseth wrote:
This is the .Net equivalant .....
Imports System.Diagnostics

Public Module modmain

Sub Main()

Dim NewProcess as Process = new Process

NewProcess.Start("C:\MyApplication.exe")

End Sub

End Module
regards

Michel Posseth [MCP]

"Paul Cheetham" <PA******@dsl.pipex.com> wrote in message
news:eV**************@TK2MSFTNGP09.phx.gbl...
Hi,

I am trying to execute another application from my VB.Net app.
Using the Windows API I would use a WinExec call, but I don't seem to be
able to find an equivalent function in VB.Net

Can anyone help Me?
I've been searching for this for ages without luck so far.

Thankyou
Paul Cheetham


Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Elie Grouchko | last post by:
Hi In Page1.asp I am calling Server.Execute("Page2.asp"). Before calling Server.Execute(), I set an application variable to a value that it is important for me to know that it doesn't get...
2
by: Elie Grouchko | last post by:
Hi All I am using Application.lock to protect a reference to a COM+ object while calling Server.Execute() to another ASP page. I am doing this to pass the object's reference to the other page,...
6
by: Doohan W. | last post by:
Hi, I'm now working with DB2, and I can't find out how to execute the contents of a string Statement, without using a Java/... procedure, only using SQL statements. I know that some SQBDs such...
15
by: Madhanmohan S | last post by:
Hi All, I want to run a command line appplication from C#. When i start the application, it will go into specific mode. After that, i have to give commands to use the application. How Can This Be...
1
by: Dean R. Henderson | last post by:
I have a Windows library that I bind into a Windows Form application and into an ASP.NET Web Application. I have a procedure in the library that executes a DTS Package. I have also used...
4
by: Chris | last post by:
I posted this in the C# language group, then thought it might be more appropriate in this group. I would not cross-post except I want the answer so badly. I built small C# Web and Web Service...
1
by: Eric Wood | last post by:
We have an application that is accessed using shared drives, client executes program from server. We have already coded the program to create and save the a bat file either locally on the users...
9
by: Pachydermitis | last post by:
Hi, Is there any way to execute a function by using it's pointer? The reason I want to do this is: I have a control on a form that I have wrapped with a class. I want to be able to dynamically...
2
by: Ian Boyd | last post by:
We're encountering a situation where we're encountering a deadlock, and someone's been made the deadlock victim. But after that, DB2 refuses to run any SQL, and instead we get the error message: ...
6
by: =?Utf-8?B?RGF2ZQ==?= | last post by:
I'm running VS 2003/ASP.NET 1.1.4322.0 on XP SP2 All of a sudden I started to getting... "Error while trying to run project: Unable to start debugging on the web server. Server side-error...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...

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.