PDA

View Full Version : Kill another program



NewsArchive
09-10-2008, 01:50 AM
I have a program, that makes some printerfiles etc, that again is run by a
program called server.exe.
Problem is, that the printerdriver cannot make two prints at the same time.
When my program has made a printerfile, server.exe immideately starts to
process it.
So, I need to kill server.exe meanwhile I run my program.
To start it again is easy, run([Pathname]\server.exe).
But how to stop it... Wat I need is something like Kill(server.exe)

Edvard Korsbæk

NewsArchive
09-10-2008, 01:51 AM
Hi Edvard,

Write a "helper" application with SetupBuilder to "kill" that application.
Create a Blank Script and use the "Terminate Active Application..."
function.

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
09-10-2008, 01:52 AM
I have attached a simple SetupBuilder script and the source code to handle
this.

Compile the script and use the following to "kill" an active server.exe

killapp server.exe

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
09-10-2008, 01:52 AM
BTW, you can compile this project "asInvoker" so it does not display an
elevation prompt under Vista/2008. This KillApp application also works
under Vista/2008.

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
09-10-2008, 01:54 AM
Hi Friedrich!
You told me some time ago, that SetUpbuilder too was used as a programming
language.
This is really an example of 'How to' - Does exactly what I need.
Thanks

Edvard Korsbæk