According to this post, I run that command but a black page flashes and disappears. What should I do to see the result?

I rebooted but it doesn't take effect.

link|improve this question

70% accept rate
Also, I hope you do realize that all of the commands from the mentioned post are supposed to be run on Linux? – Andrejs Cainikovs Jan 30 at 18:55
1  
@AndrejsCainikovs I assumed the user is referring to chkdsk as this self-closing-shell seemed more of a "Windows problem" to me. – Oliver Salzburg Jan 30 at 19:01
@OliverSalzburg You must be right. Thanks for clarification. – Andrejs Cainikovs Jan 30 at 21:52
feedback

2 Answers

up vote 4 down vote accepted
  • Press Win+R
  • Type cmd and press Enter
  • Type your command in the resulting window, it should stay open after the command has finished.

To run a command with elevated privileges (as Administrator), do the following (Vista/7 only):

  • Press Win
  • Type cmd and press Ctrl+Shift+Enter, confirm the following dialog by pressing "Yes".
  • Type your command in the resulting window, it should stay open after the command has finished.
link|improve this answer
Thank you for your answer. It says "access denied as you do not have sufficient privileges, you have to invoke this utility running in elevated mode". Could you please tell me what "elevated mode" is? – Gigili Jan 30 at 19:12
@Gigili I added additional instructions to my answer. – Oliver Salzburg Jan 30 at 19:16
That worked perfectly, thank you very much. – Gigili Jan 30 at 19:20
feedback

Instead of running

ping example.com

you can do

cmd /k ping example.com

and the cmd window will remain open. Generally i use "cmd /k " to run something and keep it open until i close it

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.