diskpart

Windows CMD · System · available in the simulator

What it does

Interactive tool to manage disks, partitions, and volumes.

Syntax

diskpart [/s script]

Options and parameters

  • /s

    Executes commands from a script file.

    diskpart /s script.txt

Usage examples

  • diskpart
  • diskpart /s script.txt

Notes and common mistakes

  • Interactive tool: once opened, subcommands such as list disk, select disk, or clean are used. Can destroy data.
Practise diskpart

Related commands