CMD closes immediately after opening it












0















My problem



I am trying to open a command prompt like this:



Step 1



press windows+run



Step 2



Write cmd



Step 3



Press enter



Result



Cmd briefly opens then closes



Causes



Recently i had a malware but i cleaned it with MalwareBytes, still this could be a follow-up of that



Other weird behaviour





  • When i go to `windows/system32` and I right click `cmd.exe` to see it's properties it doesn't allow me to do it, acts just like if I would have clicked away, on the other hand i can see the properties for other files


  • If i right click the start icon and run command prompt from there it allows me to use cmd perfectly

  • I can't open `.cmd` files


What I've tried




  1. I ran `sfc` for cmd and it closed my command prompt

  2. I checked `HKEY_LOCAL_MACHINESOFTWAREMicrosoftCommand Processor` for any autoruns but i found none

  3. I checked with the program `autoruns` if there are any autoruns on the cmd and i couldn't found any


Any help is highly appreciated!










share|improve this question























  • Sounds like a virus. Try booting into safe mode and see if things run normally.

    – duct_tape_coder
    Dec 19 '18 at 21:32











  • I think you can refer to this article: stackoverflow.com/questions/5373137/…

    – Peter.G
    Dec 20 '18 at 6:56













  • everytime I try to acess the link you posted my browser closes? I'll do another scan to see if I find something

    – Radu
    Dec 20 '18 at 10:35











  • Also when I start it in safe mode cmd opens with no problem

    – Radu
    Dec 20 '18 at 10:53
















0















My problem



I am trying to open a command prompt like this:



Step 1



press windows+run



Step 2



Write cmd



Step 3



Press enter



Result



Cmd briefly opens then closes



Causes



Recently i had a malware but i cleaned it with MalwareBytes, still this could be a follow-up of that



Other weird behaviour





  • When i go to `windows/system32` and I right click `cmd.exe` to see it's properties it doesn't allow me to do it, acts just like if I would have clicked away, on the other hand i can see the properties for other files


  • If i right click the start icon and run command prompt from there it allows me to use cmd perfectly

  • I can't open `.cmd` files


What I've tried




  1. I ran `sfc` for cmd and it closed my command prompt

  2. I checked `HKEY_LOCAL_MACHINESOFTWAREMicrosoftCommand Processor` for any autoruns but i found none

  3. I checked with the program `autoruns` if there are any autoruns on the cmd and i couldn't found any


Any help is highly appreciated!










share|improve this question























  • Sounds like a virus. Try booting into safe mode and see if things run normally.

    – duct_tape_coder
    Dec 19 '18 at 21:32











  • I think you can refer to this article: stackoverflow.com/questions/5373137/…

    – Peter.G
    Dec 20 '18 at 6:56













  • everytime I try to acess the link you posted my browser closes? I'll do another scan to see if I find something

    – Radu
    Dec 20 '18 at 10:35











  • Also when I start it in safe mode cmd opens with no problem

    – Radu
    Dec 20 '18 at 10:53














0












0








0








My problem



I am trying to open a command prompt like this:



Step 1



press windows+run



Step 2



Write cmd



Step 3



Press enter



Result



Cmd briefly opens then closes



Causes



Recently i had a malware but i cleaned it with MalwareBytes, still this could be a follow-up of that



Other weird behaviour





  • When i go to `windows/system32` and I right click `cmd.exe` to see it's properties it doesn't allow me to do it, acts just like if I would have clicked away, on the other hand i can see the properties for other files


  • If i right click the start icon and run command prompt from there it allows me to use cmd perfectly

  • I can't open `.cmd` files


What I've tried




  1. I ran `sfc` for cmd and it closed my command prompt

  2. I checked `HKEY_LOCAL_MACHINESOFTWAREMicrosoftCommand Processor` for any autoruns but i found none

  3. I checked with the program `autoruns` if there are any autoruns on the cmd and i couldn't found any


Any help is highly appreciated!










share|improve this question














My problem



I am trying to open a command prompt like this:



Step 1



press windows+run



Step 2



Write cmd



Step 3



Press enter



Result



Cmd briefly opens then closes



Causes



Recently i had a malware but i cleaned it with MalwareBytes, still this could be a follow-up of that



Other weird behaviour





  • When i go to `windows/system32` and I right click `cmd.exe` to see it's properties it doesn't allow me to do it, acts just like if I would have clicked away, on the other hand i can see the properties for other files


  • If i right click the start icon and run command prompt from there it allows me to use cmd perfectly

  • I can't open `.cmd` files


What I've tried




  1. I ran `sfc` for cmd and it closed my command prompt

  2. I checked `HKEY_LOCAL_MACHINESOFTWAREMicrosoftCommand Processor` for any autoruns but i found none

  3. I checked with the program `autoruns` if there are any autoruns on the cmd and i couldn't found any


Any help is highly appreciated!







command-line windows-8.1 cmd.exe






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 19 '18 at 21:07









RaduRadu

11




11













  • Sounds like a virus. Try booting into safe mode and see if things run normally.

    – duct_tape_coder
    Dec 19 '18 at 21:32











  • I think you can refer to this article: stackoverflow.com/questions/5373137/…

    – Peter.G
    Dec 20 '18 at 6:56













  • everytime I try to acess the link you posted my browser closes? I'll do another scan to see if I find something

    – Radu
    Dec 20 '18 at 10:35











  • Also when I start it in safe mode cmd opens with no problem

    – Radu
    Dec 20 '18 at 10:53



















  • Sounds like a virus. Try booting into safe mode and see if things run normally.

    – duct_tape_coder
    Dec 19 '18 at 21:32











  • I think you can refer to this article: stackoverflow.com/questions/5373137/…

    – Peter.G
    Dec 20 '18 at 6:56













  • everytime I try to acess the link you posted my browser closes? I'll do another scan to see if I find something

    – Radu
    Dec 20 '18 at 10:35











  • Also when I start it in safe mode cmd opens with no problem

    – Radu
    Dec 20 '18 at 10:53

















Sounds like a virus. Try booting into safe mode and see if things run normally.

– duct_tape_coder
Dec 19 '18 at 21:32





Sounds like a virus. Try booting into safe mode and see if things run normally.

– duct_tape_coder
Dec 19 '18 at 21:32













I think you can refer to this article: stackoverflow.com/questions/5373137/…

– Peter.G
Dec 20 '18 at 6:56







I think you can refer to this article: stackoverflow.com/questions/5373137/…

– Peter.G
Dec 20 '18 at 6:56















everytime I try to acess the link you posted my browser closes? I'll do another scan to see if I find something

– Radu
Dec 20 '18 at 10:35





everytime I try to acess the link you posted my browser closes? I'll do another scan to see if I find something

– Radu
Dec 20 '18 at 10:35













Also when I start it in safe mode cmd opens with no problem

– Radu
Dec 20 '18 at 10:53





Also when I start it in safe mode cmd opens with no problem

– Radu
Dec 20 '18 at 10:53










0






active

oldest

votes











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%2f1386043%2fcmd-closes-immediately-after-opening-it%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1386043%2fcmd-closes-immediately-after-opening-it%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

Plaza Victoria

Puebla de Zaragoza

Musa