How to close a running .Exe using Task Manager

I am developing a Web application using CGI scripts, which are being written in VC++ 5.0. Since we are in the development as well as testing stages, sometimes we have to close the running CGI script (.exe) forcefully when something goes wrong. I am unable to close/end a particular running .exe through Task Manager. It says “Access is denied,” although I am logged in as Administrator. We will go for some “Time out”processes after our app starts running. How can I end or close down the .exes through Task Manager or some other app?

Look at Q155075, “Cannot End Service with Task Manager.” Quoting from the article:


You may receive the following warning message when you try to end a process with Task Manager: The operation could not be completed. Access is denied.

Killing a process is done with a call to TerminateProcess (Win32 API). By default, it is not possible to kill a process that is running under a security context different than the one of the process who issued the call to TerminateProcess.

To work around this problem, use the KILL command line utility (available with the Windows NT 4.0 Resource Kit) to kill processes that do not run under the security context of the logged on user.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin


The Latest

your company's audio

4 Areas of Your Company Where Your Audio Really Matters

Your company probably relies on audio more than you realize. Whether you’re creating a spoken text message to a colleague or giving a speech, you want your audio to shine. Otherwise, you could cause avoidable friction points and potentially hurt your brand reputation. For example, let’s say you create a

chrome os developer mode

How to Turn on Chrome OS Developer Mode

Google’s Chrome OS is a popular operating system that is widely used on Chromebooks and other devices. While it is designed to be simple and user-friendly, there are times when users may want to access additional features and functionality. One way to do this is by turning on Chrome OS

homes in the real estate industry

Exploring the Latest Tech Trends Impacting the Real Estate Industry

The real estate industry is changing thanks to the newest technological advancements. These new developments — from blockchain and AI to virtual reality and 3D printing — are poised to change how we buy and sell homes. Real estate brokers, buyers, sellers, wholesale real estate professionals, fix and flippers, and beyond may