• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3618
  • Last Modified:

Commnad to list all Drives

Is there any shell command which will list all the existing
drives?
0
prashanthgn
Asked:
prashanthgn
1 Solution
 
bonzaiCommented:
Hi

try "NET USE" without parameters
0
 
IeuanJCommented:
here is a site with a full list of msdos commands, I dont know off the top of my head of one that does what you want but you might find something here.

http://www.computerhope.com/msdos.htm
0
 
M69_Bv3Commented:
Hi prashanthgn!

If u want to list all the existing drives, u can use this:

===

@for %%a in (c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z) do @if exist %%a:\ @echo %%a:\

===

This cmd will list all drives :)

I hope that will help u ;)

++

M69 [Bv3]
0
 
prashanthgnAuthor Commented:
Hi Bonzai,

  Thanks for helping, but this command will just list the network mapped drives, I also need to be able to get the local drive names
0
 
prashanthgnAuthor Commented:
Hi,  Thanks a lot..it worked fine
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now