What is "command -line" command

  • Thread starter Thread starter Craig
  • Start date Start date
C

Craig

Here is a sentence:

"Run the chkdsk command-line command with the /r switch".

I have a problem with this line for my XP Pro computer.
Does this mean that I should type in chkdsk /r at "command prompt" under
Accessories?
Craig
 
yes but once entered, you will be required to reboot to perform chkdsk.
it will autostart. if you hit any key, it will abort and try to run again
next time you reboot.

So don't interrupt it.
 
Dennis,

If I type in "chkdsk /r " Start > Run. is that equivalent to type at
"command prompt".
I assume that command prompt is equivalent to DOS environment.
Please correct me. thanks. Craig.
 
yes As far as I'm concerned. Most MVPs will correct people and say there is
no DOS. It's command prompt.
 
Craig said:
Dennis,

If I type in "chkdsk /r " Start > Run. is that equivalent to type at
"command prompt".

Yes.


I assume that command prompt is equivalent to DOS environment.
Please correct me. thanks. Craig.


No, it's not equivalent. There is no DOS in XP. For some purposes the
command prompt will work exactly the same way, for other purposes it won't
work at all.

For your purpose here, you can think of it as being the same.
 
If I type in "chkdsk /r " Start > Run. is that equivalent to type at

Then, why bother using command prompt which requires more clicks than using
Start > Run.

Craig
 
Craig said:
Then, why bother using command prompt which requires more clicks than
using Start > Run.



If you're asking about the difference between a command prompt window (which
you get by typing CMD) and the command prompt available at the Start | Run
line (they are both command prompts), there are a couple of differences:

1. Open a command prompt window by typing CMD at the Start | Run line, and
enter the command ipconfig.

Then enter the same ipconfig command directly from the Start | Run line. The
result is the same, but when you enter the command directly from Start |
Run, you won't be able to read the result, because the window quickly closes
automatically when the command completes. With CMD, the window stays open
until you close it manually.

2. Also, internal commands don't work directly from Start | Run.
 
1. Open a command prompt window by typing CMD at the Start | Run
line, and enter the command ipconfig.

Then enter the same ipconfig command directly from the Start | Run
line. The result is the same, but when you enter the command directly
from Start | Run, you won't be able to read the result, because the
window quickly closes automatically when the command completes. With
CMD, the window stays open until you close it manually.

To run ipconfig from Start | Run, add cmd /k to the command line.

Example: cmd /k ipconfig <g>
 
Back
Top