Thread: How to close an EXE

  1. #1

    Question How to close an EXE

    Is there a way to close an EXE from another EXE ? Do you use a system command in the code ?

    Thanks in advance for your answers. rwalt

  2. #2
    My OS is Win32 (Win98), I use both Borland 5.5.1 Free Command Line Tools and Dev-C++ 4.01 (MinGW GCC 2.95.2-1).

    The reason is that a windows app I created for work is being used against my wishes by coworkers. I have created a new version that will not run unless it detects two hidden text files.

    The problem is that they have made copies of the older version, and I want to create a program that will detect it running in the OS and shut it down, then overwrite it to render it useless (hopefully they won't change the file name to something I cannot target).

    I'm pretty ticked off !!! rwalt

  3. #3
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Sounds more like a job for your management.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  4. #4
    Yeah your right Adrian. The program is harmless anyway.

    But the question I posed is interesting, I know of a post on this site that shows some code on how to shut down Windows from an application. If you could do that, surely there must be a way to close one or more Windows application from another. I suspect ( but probably am wrong ) that it could be done with asm code. Microsoft probably saw the ills of someone being capable of doing this, and built the WinOS in such a way to greatly hinder someone trying to do this very thing.

    Thankyou for your replies. rwalt

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Close an HTTPListenerResponse.OutputStreram
    By George2 in forum C# Programming
    Replies: 0
    Last Post: 04-23-2008, 11:00 PM
  2. open() and close()
    By SoFarAway in forum C Programming
    Replies: 3
    Last Post: 04-08-2005, 01:16 PM
  3. Close another exe from another exe??
    By Tony in forum Windows Programming
    Replies: 1
    Last Post: 06-12-2002, 07:19 AM
  4. executed exe does not close
    By Dream in forum C++ Programming
    Replies: 2
    Last Post: 11-28-2001, 04:38 AM
  5. Ghost in the CD Drive
    By Natase in forum A Brief History of
    Replies: 17
    Last Post: 10-12-2001, 05:38 PM