How to kill a c++ .exe file that I made

1328D carousel.exe is the file I want to kill. Actually it is a program for a simple question which I wrote. But somehow, it's stuck (in an infinite loop probably). When my computer stopped responding and froze for many seconds, and again started working, I deleted the cpp file (in panic). Now, I cannot delete the .exe file as it says access denied . I can't kill the process again because open in 1328D carousel.exe. And my pc is suffering since this happened (it freezes, has slowed down immensely). see my task manager unable to terminate processunable to delete

How should I deal with the problem. I have no problem if this file gets deleted or changed I just want my pc back in good health.


Unless you have put that executable somewhere it runs at startup a reboot should have killed it.

Open a command prompt and type shutdown /r /t 0 and check after it has restarted then.

It may be that either the reboot you did was using the Windows Fast Startup feature to restart it, or if you did a shutdown and restart, not actually closing it in the first place as it appear to be unkillable by normal means. "Shutdown" from the start menu does not fully close down your machine any more so a runaway process such as this one may not be ended.

The shutdown command line should bypass all the "smart" features in Windows and perform a clean reboot.