Is there a way to list the available drives from cmd.exe ? (Other than manually typying
c:
d:
...
and seeing which ones return errors)
|
Is there a way to list the available drives from cmd.exe ? (Other than manually typying
and seeing which ones return errors)
| |||
|
feedback
|
if probably the easiest one. Doesn't need administrative privileges, doesn't return more or less than what's needed, etc. If you want to use it in a script, then wrap it in
| |||
|
feedback
|
|
If you're in Command Prompt: diskpart then list volume sample output: Volume ### Ltr Label Fs Type Size Status Info ---------- --- ----------- ----- ---------- ------- --------- -------- Volume 0 E DVD-ROM 0 B No Media Volume 1 System Rese NTFS Partition 100 MB Healthy System Volume 2 C System NTFS Partition 99 GB Healthy Boot Volume 3 F Data (local NTFS Partition 365 GB Healthy and finally exit to return to the command line. | |||||
feedback
|
|
If you're using powershell then you can type in
Edited in response to comments to only show filesystems | ||||
feedback
|