.BAT file that appears and disappears instantly along with CMD

ShaKie -  
 Anonymous user -
Well! I have no idea how to solve this problem, I have a Windows 10 (I don't know if I should include my configuration), it's all in the title!

My .BAT files as well as the Windows command prompt (CMD) open a window and then close it instantly.

I hope someone has already encountered this problem! Otherwise, I'm afraid I’ll have to reset my computer :'(.

5 answers

  1. Anonymous user
     
    Hello,
    cmd or powershell (on Windows 10)
    if possible: have you run an sfc /scannow?

    Try creating or using another user or administrator.
    0
  2. ShaKie
     
    Hello,
    My PowerShell starts fine (on Windows 10), so I ran an sfc /scannow through it: The Windows Resource Protection program found no integrity violations.

    And I only have one user on my computer so I'm running everything as an administrator.

    But I'm still having the same issue with my command prompt (CMD), as well as the .BAT files I execute even though there is a "line of code" to pause.
    0
  3. Anonymous user
     
    Hello,

    Are you using the command prompt as an administrator?

    Otherwise, try creating a new user account; just to see...
    0
  4. ShaKie
     
    So yes, I am trying to open my command prompt (CMD) as an administrator, but the window, as mentioned earlier, opens and closes instantly.

    I have therefore created a user account with administrator rights, and on this other account, I was able to open the command prompt without any issues!

    What do you think is causing this?
    0