473,626 Members | 3,265 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Terminating processes

I'm using a small vb.net app to open up applications within a Citrix/terminal
services session. Under some conditions, I'd like the app to close those
applications. However, code I've found online will kill all instances of an
executeable on a server, effectively killing the apps for other users'
sessions. Obviously that's bad.

I'd like to find out how I can kill an instance of an executeable that was
started by the user.
Aug 25 '06 #1
1 1308
Ive created something similar, but the processes as I understood them
(and im new to vb) but the processes are local to the person logged in.

So I have a little Listener prog that runs on each client machine and when I
want to kill
certain processes they are running, i set up a txt file on the / in the same
directory as the
listener program is running from.

The Listener program that runs on each machine has a file system watch on it
and checks every
so many minutes for that file. If it finds the file, it kills the Processes
( locally ) on the users machine.
-They can only see their own processes.

Id be curious to know if someone knows how to kill processes on other
machines from the server.
It would have made my life easier back then :)

M.
"Dave" <Da**@discussio ns.microsoft.co mwrote in message
news:D5******** *************** ***********@mic rosoft.com...
I'm using a small vb.net app to open up applications within a
Citrix/terminal
services session. Under some conditions, I'd like the app to close those
applications. However, code I've found online will kill all instances of
an
executeable on a server, effectively killing the apps for other users'
sessions. Obviously that's bad.

I'd like to find out how I can kill an instance of an executeable that was
started by the user.

Aug 25 '06 #2

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

Similar topics

1
2076
by: Earl Eiland | last post by:
I'm running a PyWin program that executes another program using subprocess.Popen(). Unfortunately, this other program isn't well behaved, and frequently terminates without terminating its process. After this happens enough times, all my memory is tied up, and the machine crashes. Using subprocess.poll(), I can keep my program from hanging, by timing out the process, and starting anew. This still leaves the previous process hogging...
3
1328
by: Jerry | last post by:
If a Windows User decides to kill a process or a separate Windows app calls Process.Kill(), is there any way that the process being killed can see what's going on before it dies? I have a Windows Service that uses some third party dlls which are a bit messy. If the application is improperly closed, all kinds of things start to go wrong, so I want to catch the Kil command and clean up before dying It's very likely that what I'm asking isn't...
6
9163
by: news.microsoft.com | last post by:
I have a very multi-threaded Windows Forms application. There are many BeginInvoke calls, as well as Thread/ThreadStarts. My issue is that when I quit my application there are often threads hanging around that prevent the process from dying. I've gone through my code line by line looking for orphaned threads, but I'm unable to figure out where they are being created. Is there any way to kill all threads spawned by a process without...
9
7252
by: SP | last post by:
Hi All, I wrote a windows service which is supposed to stop after specified amount of time. I am calling OnStop() after specified time. OnStop() methods executed but I dont see the service stopping. Please advise how to stop the service. Thanks, SP
23
7574
by: Adam Clauss | last post by:
I have a C# Windows Service running as the NetworkService account because it needs to access a network share. As part of the service's initialization, I want the service to terminate, if an unrecoverable error occurs. When that case occurs, I create a ServiceController object and call the Stop() method. However - I get an exception thrown saying access denied. If I switch to using the LocalService account it works fine, but I lose...
1
1196
by: Dino Buljubasic | last post by:
I have application A and B Application A runs from its main() checks if B exists and if it does, runs application B (which also strarts from its main()). in task manager I can see A.exe and B.exe processes running I would like to closse A either while B is running or when B closes but when I close application B, application A still stays running in Task Manager.
2
2357
by: SMichal | last post by:
Hi. how can I terminate process which was started with cmd /c ? The Kill() method terminates only that CMD.exe string cdHome = @"C:\Temp\"; string localhost = "chsaXY"; string userName = "aaa"; string password = "bbb"; string processFile = @"C:\Data.prc"; string temp = @"C:\Temp\"; string args = @" /c " + cdHome + "Notepad.exe " + " -n" + localhost + " -u"
0
944
markryan57
by: markryan57 | last post by:
Greetings, I have seen different ideas on how to terminate active processes (i.e., MS Access, Excel, etc) from VB6 - what is the most effecient method of finding and terminating active processes? Thanks for the help.. mark
4
2645
by: geoffbache | last post by:
Hi all, I've always wondered why os.kill isn't supported on Windows. I found a discussion somewhere from 2006 about this so it seems others have wanted it, but still nothing. So I have a half-baked solution involving calling "taskkill" on Windows Vista or "tskill" on Windows XP via the shell. I feel there has to be a better way. I'm also fairly confused about when I've got an ID and when I've got a handle. The subprocess module gives...
0
8196
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
8705
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...
0
8637
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8504
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
7193
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
6125
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...
0
4092
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2625
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
1511
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.