473,394 Members | 1,951 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,394 software developers and data experts.

Closing other win app from current app

Hi all,

Is there a way to kill another application from within the current
application. I need to be able to stop an application we use in house, and
can't modify that application, so what I'd like to do is write a little app
that closes the first one when an event happens (most likely just a timer).
Is this complicated to achieve?

Thanks,

D
Nov 20 '05 #1
3 928
* "Big D" <a@a.com> scripsit:
Is there a way to kill another application from within the current
application. I need to be able to stop an application we use in house, and
can't modify that application, so what I'd like to do is write a little app
that closes the first one when an event happens (most likely just a timer).
Is this complicated to achieve?


Have a look at the 'System.Diagnostics.Process' class and all of its
methods in the documentation.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
thanks!
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2i************@uni-berlin.de...
* "Big D" <a@a.com> scripsit:
Is there a way to kill another application from within the current
application. I need to be able to stop an application we use in house, and can't modify that application, so what I'd like to do is write a little app that closes the first one when an event happens (most likely just a timer). Is this complicated to achieve?


Have a look at the 'System.Diagnostics.Process' class and all of its
methods in the documentation.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #3
Big D,

There is always, sending a WM_CLOSE to tell the app to shutdown nicely.
That via WIN32API SendMessage.

If that doesn't work,

Then use the process class, start that process and you can use that same
instance of the process to "KILL it"

Shane

"Big D" <a@a.com> wrote in message
news:uO**************@TK2MSFTNGP12.phx.gbl...
Hi all,

Is there a way to kill another application from within the current
application. I need to be able to stop an application we use in house, and can't modify that application, so what I'd like to do is write a little app that closes the first one when an event happens (most likely just a timer). Is this complicated to achieve?

Thanks,

D

Nov 20 '05 #4

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

Similar topics

8
by: simon place | last post by:
Spent some very frustrating hours recoding to find a way of closing a server socket, i'd not thought it would be any problem, however, after complete failure and as a last resort, i looked at the...
4
by: Max Dupenois | last post by:
I've seen numerous articles with similair (similar sp?) titles to this in my search.. unfortunately none of them seem to contain what i want, (or if they do i need someone to point out my stupidity...
7
by: Tumurbaatar S. | last post by:
Is it so important to close database connections? As I understand, after processing a request and sending a response, page object destroyed. So all used connections also destroyed. Yes?
10
by: Charles Law | last post by:
For some reason, when I click the X to close my MDI parent form, the action appears to be re-directed to one of the MDI child forms, and the parent remains open. I am then unable to close the...
2
by: Luqman | last post by:
How can I open another WebForm in ASP.Net / VS 2005 without closing the Current Webform. I tried using Server.Transfer("Form2.Aspx",True) on Button_Click of Form1 but it close the current web...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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...

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.