473,734 Members | 2,812 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

start new, end old, keep new

hey all,

i have 2 winclient .EXEs; how do i start the 1st exe just to call the 2nd
exe and let the 1st exe stop running altogether but let the 2nd exe continue
running?

thanks,
rodchar
Nov 21 '05 #1
34 1337
"rodchar" <ro*****@discus sions.microsoft .com> schrieb:
i have 2 winclient .EXEs; how do i start the 1st exe just to call the 2nd
exe and let the 1st exe stop running altogether but let the 2nd exe
continue
running?


\\\
Shell("C:\App2. exe")
Me.Close()
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #2
Hi Herfried K. Wagner,

Do you also know how to do this in C#??

TIA

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:u7******** ******@TK2MSFTN GP10.phx.gbl...
"rodchar" <ro*****@discus sions.microsoft .com> schrieb:
i have 2 winclient .EXEs; how do i start the 1st exe just to call the 2nd exe and let the 1st exe stop running altogether but let the 2nd exe
continue
running?


\\\
Shell("C:\App2. exe")
Me.Close()
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #3
"Pipo" <Pi**@nobody.co m> schrieb:
Do you also know how to do this in C#??


Notice that this is a VB.NET group and thus C# questions are off-topic here.
The C# group's name is microsoft.publi c.dotnet.langua ges.csharp. C#
solution:

\\\
using System.Diagnost ics;
..
..
..
Process.Start(@ "C:\foo.exe ");
this.Close();
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #4
Pipo,

I would not believe that Herfried would give this answer as he did, normal
he says that this is not a C# newsgroup, so now I am as well alowed in my
opinion :-)

To give it exact as you asked, set in C# a reference to the
Microsoft.Visua lBasic Net runtime and than this code.

\\\\
Microsoft.Visua lBasic.Interact ion.Shell
("@C:\App2.exe" ,Microsoft.Visu alBasic.AppWinS tyle.NormalFocu s,false,-1);
this.Close();
///

However better is it to take the last answer from Herfried, that you can use
in VBNet as well by the way.

\\\\
Imports System.Diagnost ics
..
Process.Start(" C:\foo.exe")
me.Close()
///

I hope this helps?

:-)

Cor

Nov 21 '05 #5
Pipo,

Before it is understand wrong. He says normally "what has that for sense is
VBNet not much better" or something, I was sure he would give the C# answer
as he did now.

Cor
Nov 21 '05 #6
thanks all for the help.

"Cor Ligthert" wrote:
Pipo,

Before it is understand wrong. He says normally "what has that for sense is
VBNet not much better" or something, I was sure he would give the C# answer
as he did now.

Cor

Nov 21 '05 #7
so at this point the 1st exe is no longer taking up resources anywhere,
correct?

"Herfried K. Wagner [MVP]" wrote:
"rodchar" <ro*****@discus sions.microsoft .com> schrieb:
i have 2 winclient .EXEs; how do i start the 1st exe just to call the 2nd
exe and let the 1st exe stop running altogether but let the 2nd exe
continue
running?


\\\
Shell("C:\App2. exe")
Me.Close()
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #8
"rodchar" <ro*****@discus sions.microsoft .com> schrieb:
so at this point the 1st exe is no longer taking up resources anywhere,
correct?


If the process is terminated (which means you cannot see it any more in task
manager), it won't take up resources any more.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #9
thanks again.

"Herfried K. Wagner [MVP]" wrote:
"rodchar" <ro*****@discus sions.microsoft .com> schrieb:
so at this point the 1st exe is no longer taking up resources anywhere,
correct?


If the process is terminated (which means you cannot see it any more in task
manager), it won't take up resources any more.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #10

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

Similar topics

4
4618
by: Bruce A. Julseth | last post by:
This is my 2nd request. Is the question too vague? Or, too difficult to answer. I'm really a newbie at this VS.NET stuff and do appreciate some help on this problem.---I keep getting the error "Unable to Start Debugging on the Web Server." I am on a standalone, non networked computer running XP Professonal and VS.net, and doing my development using VS.C#. I "think" I have gone through eveything listed in help for this error, but...
3
26051
by: Tom | last post by:
When using system.timers.timer, which should one use to start/stop the timer? Start/Stop, or Enabled=True/False? If what I read is true, both really do the same thing, so I don't know if there is an advantage to using one over the other. Just curious... Thanks in advance. Tom
5
2220
by: taylorjonl | last post by:
I am completely baffled. I am writting a daemon application for my work to save me some time. The application works fine at my home but won't work right here at work. Basically I have a MainForm what has a Start/Stop button that starts and stops the processing thread. private void StartButton_Click(object sender, System.EventArgs e) { if( bStopSignal ) { // disable controls that aren't valid when running
1
1977
by: roN | last post by:
Hi, I can't start Evolution 2.2.1 anymore, I keep getting this error: reg@linux:~> evolution es menu class init adding hook target 'source' (evolution:9858): camel-WARNING **: Invalid root: '/home/reg/.evolution/mail/local/Outbox.ibex.index'
5
4945
by: bbembi_de | last post by:
Hello everyone, I have a deskband that resides in the taskbar. I can start it manually. But I want to start it with system start and for all users. Is there a registry entry I have to make? Thanks. Greetings juergen
4
12375
by: Paul | last post by:
Hi, I am trying to start a process hidden. My code: wordprocess = new System.Diagnostics.Process(); ; wordprocess.StartInfo = new System.Diagnostics.ProcessStartInfo(wcmd, args); wordprocess.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; wordprocess.StartInfo.WorkingDirectory = TemplatePath.Substring(0, TemplatePath.Length - 1);
1
1142
by: Robert Tryzalot | last post by:
When trying to start my other computer, I cannot get it going. I have tried to start in all safe modes, I get scrolling text and then it stops, not with a cursor or anything. just dead in the water. When starting "normal" the MS XP screen comes up, but the blue "loading" indicator does not start moving at all. When trying to start in the "last known good version, the same screen (startup for MS Xp) comes up, but never continues with...
2
7207
by: Mark Huebner | last post by:
I am trying to create a web application with Visual Studio 2005 and C# that will start up a "keep alive" application on my web site's server. My DotNetNuke home page loads slowly when the site hasn't been accessed for a while. The purpose of the "keep alive" application is to keep my web site alive (loaded in memory) by accessing a page on the server every 5 minutes or so. I've tried using Process.Start to run a console application...
7
7230
by: shai | last post by:
I am working at .net 1.1, writing in c#. I have windows service with a COM object. Every unexpected time The COM object throw an error that make my service get stuck (do not respond). I can catch this error. I want to restart my windows service every time the COM object throws an error. I use System.ServiceProcess.ServiceController to stop and start my service. But there is one thing I do not understand:
14
5887
by: shuisheng | last post by:
Dear All, I want to start a c++ software project. It is used to simulate the propagation of sound waves in complex media. It may contain 4 parts: GUI, preprocession, simulation and postprocession. Users can use GUI to model their geometry, set some parameters and show the results. The system is kind of large. I have no expierence in large codes. But I am very familiar with the physics part and what functionaloty the system should...
0
8946
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8777
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9452
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9237
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9184
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8187
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6737
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
3262
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2729
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.