List all devices, partitions and volumes in Powershell

后端 未结 9 830
时光取名叫无心
时光取名叫无心 2021-01-30 19:53

I have multiple volumes (as nearly everybody nowadays): on Windows they end up specified as C:, D: and so on. How do I list these all like on a Unix machine with \"ls /mnt/\" wi

9条回答
  •  攒了一身酷
    2021-01-30 20:45

    Firstly, on Unix you use mount, not ls /mnt: many things are not mounted in /mnt.

    Anyhow, there's the mountvol DOS command, which continues to work in Powershell, and there's the Powershell-specific Get-PSDrive.

提交回复
热议问题