How can I fully kill a program and/or python code running on Windows?












-1














I was running Sublime Text 3, but it seems I've created an infinite loop somehow. I was writing an image to file but when I look in the folder I see that the image is flickering between one of those generic image icons and the actual image. So clearly python keeps rewriting the file.



I already tried closing all of the tabs and then closing the text editor, but I still can't delete the file in my folder. Is there maybe a way to fully kill either sublime or the python code running in the background?










share|improve this question






















  • have you not solved this yet?! e.g. "I still can't delete the file in my folder." If you have then post your answer
    – barlop
    Dec 25 '18 at 21:35












  • he solved it.. And this question should not have been bumped to the homepage by the system. It's a very very basic question
    – barlop
    Dec 25 '18 at 21:36
















-1














I was running Sublime Text 3, but it seems I've created an infinite loop somehow. I was writing an image to file but when I look in the folder I see that the image is flickering between one of those generic image icons and the actual image. So clearly python keeps rewriting the file.



I already tried closing all of the tabs and then closing the text editor, but I still can't delete the file in my folder. Is there maybe a way to fully kill either sublime or the python code running in the background?










share|improve this question






















  • have you not solved this yet?! e.g. "I still can't delete the file in my folder." If you have then post your answer
    – barlop
    Dec 25 '18 at 21:35












  • he solved it.. And this question should not have been bumped to the homepage by the system. It's a very very basic question
    – barlop
    Dec 25 '18 at 21:36














-1












-1








-1







I was running Sublime Text 3, but it seems I've created an infinite loop somehow. I was writing an image to file but when I look in the folder I see that the image is flickering between one of those generic image icons and the actual image. So clearly python keeps rewriting the file.



I already tried closing all of the tabs and then closing the text editor, but I still can't delete the file in my folder. Is there maybe a way to fully kill either sublime or the python code running in the background?










share|improve this question













I was running Sublime Text 3, but it seems I've created an infinite loop somehow. I was writing an image to file but when I look in the folder I see that the image is flickering between one of those generic image icons and the actual image. So clearly python keeps rewriting the file.



I already tried closing all of the tabs and then closing the text editor, but I still can't delete the file in my folder. Is there maybe a way to fully kill either sublime or the python code running in the background?







windows windows-10 python sublime-text-2






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 7 '17 at 3:10









whatwhatwhatwhatwhatwhat

133312




133312












  • have you not solved this yet?! e.g. "I still can't delete the file in my folder." If you have then post your answer
    – barlop
    Dec 25 '18 at 21:35












  • he solved it.. And this question should not have been bumped to the homepage by the system. It's a very very basic question
    – barlop
    Dec 25 '18 at 21:36


















  • have you not solved this yet?! e.g. "I still can't delete the file in my folder." If you have then post your answer
    – barlop
    Dec 25 '18 at 21:35












  • he solved it.. And this question should not have been bumped to the homepage by the system. It's a very very basic question
    – barlop
    Dec 25 '18 at 21:36
















have you not solved this yet?! e.g. "I still can't delete the file in my folder." If you have then post your answer
– barlop
Dec 25 '18 at 21:35






have you not solved this yet?! e.g. "I still can't delete the file in my folder." If you have then post your answer
– barlop
Dec 25 '18 at 21:35














he solved it.. And this question should not have been bumped to the homepage by the system. It's a very very basic question
– barlop
Dec 25 '18 at 21:36




he solved it.. And this question should not have been bumped to the homepage by the system. It's a very very basic question
– barlop
Dec 25 '18 at 21:36










2 Answers
2






active

oldest

votes


















0














Make a right click on empty space of task bar and choose from menu 'task manager', look over list processes and when you spot "sublime"(or python process), make a right click on it and choose - "kill process tree".
If you want more details about running processes you might want to use much better program than "task manager", it called "Process Explorer" that can be downloaded from official microsoft site






share|improve this answer























  • I only see this when I right click on it: imgur.com/a/qupQ3
    – whatwhatwhat
    Jan 7 '17 at 4:29










  • NO, click on "Details" tab
    – Alex
    Jan 7 '17 at 4:32










  • Found the end process tree, but that didn't work.
    – whatwhatwhat
    Jan 7 '17 at 4:39










  • Try "Process explorer", but run it "as administrator"
    – Alex
    Jan 7 '17 at 4:44



















0














All I had to do was restart my computer. Woohoo.






share|improve this answer

















  • 1




    It isn't true "science" way :)
    – Alex
    Jan 7 '17 at 4:48










  • @Alex I hear ya, but I was frustrated with this for about 30 minutes and I just wanted to move on with my project :/
    – whatwhatwhat
    Jan 7 '17 at 4:55






  • 1




    If you familiar with console's cmd, run it as administrator next time and use tasklist to spot process ID aka PID and then use taskkill /PID 12345 /T where 12345 is a PID of misbehaved process
    – Alex
    Jan 7 '17 at 5:07










  • Thanks for closing the loop on your question. In two days, you'll be able to accept your own answer to indicate that the problem is solved.
    – fixer1234
    Jan 7 '17 at 5:32










  • please accept your answer
    – barlop
    Dec 25 '18 at 21:36











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1164368%2fhow-can-i-fully-kill-a-program-and-or-python-code-running-on-windows%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Make a right click on empty space of task bar and choose from menu 'task manager', look over list processes and when you spot "sublime"(or python process), make a right click on it and choose - "kill process tree".
If you want more details about running processes you might want to use much better program than "task manager", it called "Process Explorer" that can be downloaded from official microsoft site






share|improve this answer























  • I only see this when I right click on it: imgur.com/a/qupQ3
    – whatwhatwhat
    Jan 7 '17 at 4:29










  • NO, click on "Details" tab
    – Alex
    Jan 7 '17 at 4:32










  • Found the end process tree, but that didn't work.
    – whatwhatwhat
    Jan 7 '17 at 4:39










  • Try "Process explorer", but run it "as administrator"
    – Alex
    Jan 7 '17 at 4:44
















0














Make a right click on empty space of task bar and choose from menu 'task manager', look over list processes and when you spot "sublime"(or python process), make a right click on it and choose - "kill process tree".
If you want more details about running processes you might want to use much better program than "task manager", it called "Process Explorer" that can be downloaded from official microsoft site






share|improve this answer























  • I only see this when I right click on it: imgur.com/a/qupQ3
    – whatwhatwhat
    Jan 7 '17 at 4:29










  • NO, click on "Details" tab
    – Alex
    Jan 7 '17 at 4:32










  • Found the end process tree, but that didn't work.
    – whatwhatwhat
    Jan 7 '17 at 4:39










  • Try "Process explorer", but run it "as administrator"
    – Alex
    Jan 7 '17 at 4:44














0












0








0






Make a right click on empty space of task bar and choose from menu 'task manager', look over list processes and when you spot "sublime"(or python process), make a right click on it and choose - "kill process tree".
If you want more details about running processes you might want to use much better program than "task manager", it called "Process Explorer" that can be downloaded from official microsoft site






share|improve this answer














Make a right click on empty space of task bar and choose from menu 'task manager', look over list processes and when you spot "sublime"(or python process), make a right click on it and choose - "kill process tree".
If you want more details about running processes you might want to use much better program than "task manager", it called "Process Explorer" that can be downloaded from official microsoft site







share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 7 '17 at 4:31

























answered Jan 7 '17 at 4:27









AlexAlex

5,37111019




5,37111019












  • I only see this when I right click on it: imgur.com/a/qupQ3
    – whatwhatwhat
    Jan 7 '17 at 4:29










  • NO, click on "Details" tab
    – Alex
    Jan 7 '17 at 4:32










  • Found the end process tree, but that didn't work.
    – whatwhatwhat
    Jan 7 '17 at 4:39










  • Try "Process explorer", but run it "as administrator"
    – Alex
    Jan 7 '17 at 4:44


















  • I only see this when I right click on it: imgur.com/a/qupQ3
    – whatwhatwhat
    Jan 7 '17 at 4:29










  • NO, click on "Details" tab
    – Alex
    Jan 7 '17 at 4:32










  • Found the end process tree, but that didn't work.
    – whatwhatwhat
    Jan 7 '17 at 4:39










  • Try "Process explorer", but run it "as administrator"
    – Alex
    Jan 7 '17 at 4:44
















I only see this when I right click on it: imgur.com/a/qupQ3
– whatwhatwhat
Jan 7 '17 at 4:29




I only see this when I right click on it: imgur.com/a/qupQ3
– whatwhatwhat
Jan 7 '17 at 4:29












NO, click on "Details" tab
– Alex
Jan 7 '17 at 4:32




NO, click on "Details" tab
– Alex
Jan 7 '17 at 4:32












Found the end process tree, but that didn't work.
– whatwhatwhat
Jan 7 '17 at 4:39




Found the end process tree, but that didn't work.
– whatwhatwhat
Jan 7 '17 at 4:39












Try "Process explorer", but run it "as administrator"
– Alex
Jan 7 '17 at 4:44




Try "Process explorer", but run it "as administrator"
– Alex
Jan 7 '17 at 4:44













0














All I had to do was restart my computer. Woohoo.






share|improve this answer

















  • 1




    It isn't true "science" way :)
    – Alex
    Jan 7 '17 at 4:48










  • @Alex I hear ya, but I was frustrated with this for about 30 minutes and I just wanted to move on with my project :/
    – whatwhatwhat
    Jan 7 '17 at 4:55






  • 1




    If you familiar with console's cmd, run it as administrator next time and use tasklist to spot process ID aka PID and then use taskkill /PID 12345 /T where 12345 is a PID of misbehaved process
    – Alex
    Jan 7 '17 at 5:07










  • Thanks for closing the loop on your question. In two days, you'll be able to accept your own answer to indicate that the problem is solved.
    – fixer1234
    Jan 7 '17 at 5:32










  • please accept your answer
    – barlop
    Dec 25 '18 at 21:36
















0














All I had to do was restart my computer. Woohoo.






share|improve this answer

















  • 1




    It isn't true "science" way :)
    – Alex
    Jan 7 '17 at 4:48










  • @Alex I hear ya, but I was frustrated with this for about 30 minutes and I just wanted to move on with my project :/
    – whatwhatwhat
    Jan 7 '17 at 4:55






  • 1




    If you familiar with console's cmd, run it as administrator next time and use tasklist to spot process ID aka PID and then use taskkill /PID 12345 /T where 12345 is a PID of misbehaved process
    – Alex
    Jan 7 '17 at 5:07










  • Thanks for closing the loop on your question. In two days, you'll be able to accept your own answer to indicate that the problem is solved.
    – fixer1234
    Jan 7 '17 at 5:32










  • please accept your answer
    – barlop
    Dec 25 '18 at 21:36














0












0








0






All I had to do was restart my computer. Woohoo.






share|improve this answer












All I had to do was restart my computer. Woohoo.







share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 7 '17 at 4:39









whatwhatwhatwhatwhatwhat

133312




133312








  • 1




    It isn't true "science" way :)
    – Alex
    Jan 7 '17 at 4:48










  • @Alex I hear ya, but I was frustrated with this for about 30 minutes and I just wanted to move on with my project :/
    – whatwhatwhat
    Jan 7 '17 at 4:55






  • 1




    If you familiar with console's cmd, run it as administrator next time and use tasklist to spot process ID aka PID and then use taskkill /PID 12345 /T where 12345 is a PID of misbehaved process
    – Alex
    Jan 7 '17 at 5:07










  • Thanks for closing the loop on your question. In two days, you'll be able to accept your own answer to indicate that the problem is solved.
    – fixer1234
    Jan 7 '17 at 5:32










  • please accept your answer
    – barlop
    Dec 25 '18 at 21:36














  • 1




    It isn't true "science" way :)
    – Alex
    Jan 7 '17 at 4:48










  • @Alex I hear ya, but I was frustrated with this for about 30 minutes and I just wanted to move on with my project :/
    – whatwhatwhat
    Jan 7 '17 at 4:55






  • 1




    If you familiar with console's cmd, run it as administrator next time and use tasklist to spot process ID aka PID and then use taskkill /PID 12345 /T where 12345 is a PID of misbehaved process
    – Alex
    Jan 7 '17 at 5:07










  • Thanks for closing the loop on your question. In two days, you'll be able to accept your own answer to indicate that the problem is solved.
    – fixer1234
    Jan 7 '17 at 5:32










  • please accept your answer
    – barlop
    Dec 25 '18 at 21:36








1




1




It isn't true "science" way :)
– Alex
Jan 7 '17 at 4:48




It isn't true "science" way :)
– Alex
Jan 7 '17 at 4:48












@Alex I hear ya, but I was frustrated with this for about 30 minutes and I just wanted to move on with my project :/
– whatwhatwhat
Jan 7 '17 at 4:55




@Alex I hear ya, but I was frustrated with this for about 30 minutes and I just wanted to move on with my project :/
– whatwhatwhat
Jan 7 '17 at 4:55




1




1




If you familiar with console's cmd, run it as administrator next time and use tasklist to spot process ID aka PID and then use taskkill /PID 12345 /T where 12345 is a PID of misbehaved process
– Alex
Jan 7 '17 at 5:07




If you familiar with console's cmd, run it as administrator next time and use tasklist to spot process ID aka PID and then use taskkill /PID 12345 /T where 12345 is a PID of misbehaved process
– Alex
Jan 7 '17 at 5:07












Thanks for closing the loop on your question. In two days, you'll be able to accept your own answer to indicate that the problem is solved.
– fixer1234
Jan 7 '17 at 5:32




Thanks for closing the loop on your question. In two days, you'll be able to accept your own answer to indicate that the problem is solved.
– fixer1234
Jan 7 '17 at 5:32












please accept your answer
– barlop
Dec 25 '18 at 21:36




please accept your answer
– barlop
Dec 25 '18 at 21:36


















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1164368%2fhow-can-i-fully-kill-a-program-and-or-python-code-running-on-windows%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Probability when a professor distributes a quiz and homework assignment to a class of n students.

Aardman Animations

Are they similar matrix