List local drives from command line

by admin on June 24, 2010

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:\>

{ 2 comments… read them below or add one }

Anonymous March 10, 2011 at 6:15 pm

It shows network mapped drives too

Reply

Techblogger March 11, 2011 at 11:19 am

To get only local drives the below command should work.

wmic logicaldisk get description,name | findstr /C:"Local"

Reply

Leave a Comment

Previous post:

Next post: