Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 11:52 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Can Opus be used to close an executable?
PostPosted: April 15th, 2007, 6:58 pm 
Offline

Joined: April 15th, 2007, 6:52 pm
Posts: 5
Hi everyone,

I know Opus can launch executables but can I use it to close them?

Thanks in advance


Top
 Profile  
 
 Post subject:
PostPosted: April 15th, 2007, 10:32 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
Can't remember anything in Opus which enables you to do this, but a couple of ideas...1 If it's an EXE you created, add some code to check a registry value. Use Opus to write the registry value to exit the application.
2 From a quick look on the web. It is possible to close a running process using C# for example, so it would be possible to create an EXE to close another.

Process []pArry = Process.GetProcesses();
foreach(Process p in pArry)
{
string s = p.ProcessName;
s = s.ToLower();
if (s.CompareTo("TheProcessToClose") ==0)
{
p.Kill();
}
}

_________________
Whoever designed this, never actually used it!


Top
 Profile  
 
 Post subject:
PostPosted: April 16th, 2007, 12:28 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Sysinterals produce a command line tool called PSKill that can close a process. It's now available from Microsoft.

http://www.microsoft.com/technet/sysint ... skill.mspx


Top
 Profile Visit website  
 
 Post subject:
PostPosted: April 16th, 2007, 3:25 am 
Some time ago I found the following applications which purported to be able to shut down a running application. I found that some worked, some worked better than others, and some didn't work at all. Sorry, but I can't now remember which did what.

It is also possible that some might no longer be available, so an Internet search might be wise.

1. APPCLOSE 1.01 www.mma-schneider.at/shareware/
2. KillNamed.exe
3. Kill.exe
4. taskkill.exe


Last edited by Sentosa on April 18th, 2007, 4:08 pm, edited 1 time in total.

Top
   
 
 Post subject:
PostPosted: April 18th, 2007, 4:05 pm 
Offline

Joined: April 15th, 2007, 6:52 pm
Posts: 5
Thanks guys. I will try and get a suitable solution from what you have suggested


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Majestic-12 [Bot] and 73 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group