Need tips on using DISKPART

E

Emerald Saint

I have XP Home Edition.

DISKPART has lots of input commands you can use with it. The references
I've read seem to say I can type DISKPART at the command prompt, followed by
one of the DISKPART commands. But that doesn't work for me.

The normal way seems to be to pass DISKPART it's commands in a script file.

The syntax is DISKPART /s <script>.

I wrote a quick test script and verified it runs commands from a script
file.

But I'm still left with a lingering suspicion I should be able to give
DISKPART a command directly on the command line. I just can't let go of
that idea.
Can it be done ??
 
E

Emerald Saint

Hi BOB. The Help and Support page says this:

The diskpart command is only available when you are using the Recovery
Console.

That is a GLARING ERROR. Diskpart responds to inputs you give it in a
CMD.EXE session. Have you tried it ?
 
J

John John

Emerald said:
Diskpart responds to inputs you give it in a
CMD.EXE session. Have you tried it ?

That is not exactly true. Diskpart is a Command Console of its own, it
is another or a different command interpreter. Cmd.exe is also a
command interpreter, it can be used to start the Diskpart command
interpreter but it cannot be used to pass commands to the Diskpart
interpreter.

The Diskpart command console has an environment of its own, it doesn't
accept commands from cmd.exe, if you don't want to work at the diskpart
console you have to use a script. To properly use diskpart keep in mind
that you *always* have to have "focus" on the object that you want to
work with. As long as you keep that in mind and remember to use the
list and select commands you will have no problems.

John
 
A

Andy

I have XP Home Edition.

DISKPART has lots of input commands you can use with it. The references
I've read seem to say I can type DISKPART at the command prompt, followed by
one of the DISKPART commands. But that doesn't work for me.

The normal way seems to be to pass DISKPART it's commands in a script file.

The syntax is DISKPART /s <script>.

I wrote a quick test script and verified it runs commands from a script
file.

But I'm still left with a lingering suspicion I should be able to give
DISKPART a command directly on the command line. I just can't let go of
that idea.
Can it be done ??
help
list disk
select disk 0
detail disk
et al
 
B

Bob I

Oh DUH! Thought it went back to the command prompt. Well it WAS at the
"diskpart" prompt. My humblest applogies! To Emerald Saint try from the
command line.

ECHO "command" | Diskpart
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top