Commonly used Command Prompt Operations in Windows

Wed Sep 26 2018by Jane

Operations Commands Screenshot

Clear read-only

  • list disk
  • sel disk 1
  • attributes disk clear readonly

Convert to GPT

  • list disk
  • sel disk 2
  • clean
  • convert gpt

Convert to MBR

  • list disk
  • sel disk 2
  • convert mbr

Delete Volume

  • list disk
  • sel vol 6
  • del vol override

Active partition

  • list vol
  • sel vol 1
  • active

Extend C drive BIOS

  • list vol
  • sel vol c
  • extend

Change cluster size

  • list disk
  • select disk 1
  • list partition
  • select partition 2
  • format fs=ntfs quick unit=64k

Shrink and Create New

  • list vol
  • sel vol h
  • shrink desired=10240
  • list disk
  • create partition primary
  • assign letter=J
  • format fs=ntfs quick

Shrink volume

  • list vol
  • sel vol 3
  • shrink desired=20480

Create Partition Primary

  • list disk
  • sel disk 2
  • clean
  • create partition primary
  • active
  • format fs=ntfs quick
  • assign

Format volume

  • list volume
  • sel vol x
  • format fs=ntfs quick label=name

Defrag partition

  • defrag c: /u /v
TOP