We can run the below command from windows command prompt to get the list of local drives.
wmic logicaldisk get description,name | findstr /C:"Local"
We can find the list of drives using fsutil
command also but this one shows mapped drives also.
fsutil fsinfo drives
Example:
D:\>fsutil fsinfo drives Drives: C:\ D:\ Z:\ D:\>
It shows network mapped drives too
To get only local drives the below command should work.
wmic logicaldisk get description,name | findstr /C:"Local"
Thanks for the info. I was looking for this from couple of days . thanks
Could u help me showing some more hidden commands in windows on my mail
I will be very much thankful to you
It asks for administrative privileges
thank you so much
run diskpart, then run list volume. much easier
good one
# echo list disk | diskpart
admin required